ReadonlybodyThe request's body.
ReadonlyclosedWhether the request is closed.
- Request is closed by InterceptableRequest.redirect and InterceptableRequest.respondWith.
ReadonlyheadersThe request's HTTP headers.
ReadonlymediaThe request's media type.
ReadonlymethodThe request's HTTP method.
ReadonlyresponseThe request's response type.
ReadonlysubThe request's subtype.
ReadonlytypeThe request's type.
ReadonlyurlThe request's URL.
ReadonlyuseWhether 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.