FetchInterception
Base class to wait for a Fetch response matching a URL pattern. Use this to collect and decode a paused fetch response, while keeping the use block clean and returning its own result.
Parameters
The URL pattern to match requests and responses.
The stage of the fetch request to intercept (e.g., request or response).
The type of resource to intercept (e.g., document, script, etc.).
Inheritors
Functions
Continues the request, optionally modifying some of its parameters.
Continues loading of the paused response, optionally modifying the response headers. If either responseCode or headers are modified, all of them must be present.
Causes the request to fail with specified reason.
Provides response to the request.
Fetches the raw response body once it has been received.
Returns the request event once it has been received.
Fetches the response body once it has been received.