Aborts a request.
optional error code to provide.
If provided, intercept is resolved using cooperative handling rules. Otherwise, intercept is resolved immediately.
the most recent reason for aborting the request
Continues request with optional request overrides.
optional overrides to apply to the request.
If provided, intercept is resolved using cooperative handling rules. Otherwise, intercept is resolved immediately.
the ContinueRequestOverrides
that will be used
if the interception is allowed to continue (ie, abort()
and
respond()
aren't called).
Adds an async request handler to the processing queue. Deferred handlers are not guaranteed to execute in any particular order, but they are guaranteed to resolve before the request interception is finalized.
Access information about the request's failure.
null
unless the request failed. If the request fails this can
return an object with errorText
containing a human-readable error
message, e.g. net::ERR_FAILED
. It is not guaranteed that there will be
failure text if the request fails.
Awaits pending interception handlers and then decides how to fulfill the request interception.
the frame that initiated the request, or null if navigating to error pages.
an object with HTTP headers associated with the request. All header names are lower-case.
the initiator of the request.
An InterceptResolutionState object describing the current resolution action and priority.
InterceptResolutionState contains: action: InterceptResolutionAction priority?: number
InterceptResolutionAction is one of: abort
, respond
, continue
,
disabled
, none
, or already-handled
.
true
if the intercept resolution has already been handled,
false
otherwise.
true if the request is the driver of the current frame's navigation.
the method used (GET
, POST
, etc.)
the request's post body, if any.
A redirectChain
is a chain of requests initiated to fetch a resource.
the chain of requests - if a server responds with at least a single redirect, this chain will contain all requests that were redirected.
Contains the request's resource type as it was perceived by the rendering engine.
Fulfills a request with the given response.
the response to fulfill the request with.
If provided, intercept is resolved using cooperative handling rules. Otherwise, intercept is resolved immediately.
A matching HTTPResponse
object, or null if the response has not
been received yet.
The ResponseForRequest
that gets used if the
interception is allowed to respond (ie, abort()
is not called).
the URL of the request
Generated using TypeDoc