Readonly
bodyThe request's body.
Readonly
closedWhether the request is closed.
- Request is closed by InterceptableRequest.redirect and InterceptableRequest.respondWith.
Readonly
headersThe request's HTTP headers.
Readonly
mediaThe request's media type.
Readonly
methodThe request's HTTP method.
Readonly
responseThe request's response type.
Readonly
subThe request's subtype.
Readonly
typeThe request's type.
Readonly
urlThe request's URL.
Readonly
useWhether the player is allowed to use credentials for cross-origin requests.
Replaces the original request with the provided request.
A RequestInit or a string which is shorthand for RequestInit.url.
Immediately respond with the provided response.
A ResponseInit.
Wait until the given callback is done before closing and executing this request.
- The first argument of the callback is a done
function, which must be called to resolve the callback.
- Alternatively, the callback can return a PromiseLike
.
- Invocation of the done
function closes the request.
- Invocation while the request is closed will throw an error.
Wait until the given promise is resolved before closing and executing this request.
A PromiseLike
.
Represents an intercepted HTTP request which can be modified.