MswMockRequestHandler
Extends
RequestHandler
Constructors
new MswMockRequestHandler()
new MswMockRequestHandler(
path
:string
,resolver
:ResponseResolver
):MswMockRequestHandler
Parameters
• path: string
• resolver: ResponseResolver
Returns
Overrides
RequestHandler.constructor
Methods
log()
log(
args
:object
):void
Parameters
• args
• args.parsedResult: any
• args.request: Request
• args.response: Response
Returns
void
Overrides
RequestHandler.log
parse()
parse(...
args
: [object
]):Promise
<any
>
Parameters
• ...args: [object
]
Returns
Promise
<any
>
Overrides
RequestHandler.parse
predicate()
predicate(
args
:object
):boolean
Parameters
• args
• args.parsedResult: any
• args.request: Request
• args.resolutionContext?: unknown
Returns
boolean
Overrides
RequestHandler.predicate
receivedRequest()
receivedRequest():
undefined
|Request
Returns
undefined
| Request