Callback the recorder supplies to a transport adapter. The adapter
calls this once per intercepted request, with the request normalized
to HttpRequest.
If the callback returns a Response, the adapter must short-circuit
the underlying transport and complete the request with that response
(used for event-target POST stubbing).
If the callback returns undefined, the adapter forwards the request
to the original transport unchanged.
Callback the recorder supplies to a transport adapter. The adapter calls this once per intercepted request, with the request normalized to HttpRequest.
If the callback returns a
Response, the adapter must short-circuit the underlying transport and complete the request with that response (used for event-target POST stubbing).If the callback returns
undefined, the adapter forwards the request to the original transport unchanged.