* Test if this handler matches the given request. * * This method is not used internally but is exposed * as a convenience method for consumers writing custom * handlers.
(args: {
request: Request
resolutionContext?: ResponseResolutionContext
})
| 259 | * handlers. |
| 260 | */ |
| 261 | public async test(args: { |
| 262 | request: Request |
| 263 | resolutionContext?: ResponseResolutionContext |
| 264 | }): Promise<boolean> { |
| 265 | const parsedResult = await this.parse({ |
| 266 | request: args.request, |
| 267 | resolutionContext: args.resolutionContext, |
| 268 | }) |
| 269 | |
| 270 | return this.predicate({ |
| 271 | request: args.request, |
| 272 | parsedResult, |
| 273 | resolutionContext: args.resolutionContext, |
| 274 | }) |
| 275 | } |
| 276 | |
| 277 | protected extendResolverArgs(_args: { |
| 278 | request: Request |
no test coverage detected
searching dependent graphs…