Module fetch

Module fetch 

Source
Expand description

Fetch domain types.

The Fetch domain allows intercepting network requests, modifying them, and providing custom responses. It’s the primary mechanism for request routing and mocking in browser automation.

Structs§

AuthChallenge
Authorization challenge for HTTP status code 401 or 407.
AuthChallengeResponse
Response to an AuthChallenge.
AuthRequiredEvent
Event: Fetch.authRequired
ContinueRequestParams
Parameters for Fetch.continueRequest.
ContinueResponseParams
Parameters for Fetch.continueResponse (experimental).
ContinueWithAuthParams
Parameters for Fetch.continueWithAuth.
DisableParams
Parameters for Fetch.disable.
EnableParams
Parameters for Fetch.enable.
FailRequestParams
Parameters for Fetch.failRequest.
FulfillRequestParams
Parameters for Fetch.fulfillRequest.
GetResponseBodyParams
Parameters for Fetch.getResponseBody.
GetResponseBodyResult
Result for Fetch.getResponseBody.
HeaderEntry
Response HTTP header entry.
RequestPattern
Request pattern for interception.
RequestPausedEvent
Event: Fetch.requestPaused

Enums§

AuthChallengeResponseType
The decision on what to do in response to the authorization challenge.
AuthChallengeSource
Source of the authentication challenge.
ErrorReason
Network level fetch failure reason.
RequestStage
Stage at which to begin intercepting requests.

Type Aliases§

RequestId
Unique request identifier for the Fetch domain.