onRequest

The function to intercept HTTP requests with.

Parameters

request

The original HttpRequest object to be modified.

continuation

Callback to be invoked once the interceptor has finished processing the request. Can also be invoked with a HttpResponse, in which case the request completes immediately.