puppeteer/new-docs/puppeteer.protocol.fetch.md

49 lines
3.0 KiB
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Protocol](./puppeteer.protocol.md) &gt; [Fetch](./puppeteer.protocol.fetch.md)
## Protocol.Fetch namespace
A domain for letting clients substitute browser's network layer with client code.
<b>Signature:</b>
```typescript
export namespace Fetch
```
## Enumerations
| Enumeration | Description |
| --- | --- |
| [AuthChallengeResponseResponse](./puppeteer.protocol.fetch.authchallengeresponseresponse.md) | |
| [AuthChallengeSource](./puppeteer.protocol.fetch.authchallengesource.md) | |
## Interfaces
| Interface | Description |
| --- | --- |
| [AuthChallenge](./puppeteer.protocol.fetch.authchallenge.md) | Authorization challenge for HTTP status code 401 or 407. |
| [AuthChallengeResponse](./puppeteer.protocol.fetch.authchallengeresponse.md) | Response to an AuthChallenge. |
| [AuthRequiredEvent](./puppeteer.protocol.fetch.authrequiredevent.md) | Issued when the domain is enabled with handleAuthRequests set to true. The request is paused until client responds with continueWithAuth. |
| [ContinueRequestRequest](./puppeteer.protocol.fetch.continuerequestrequest.md) | |
| [ContinueWithAuthRequest](./puppeteer.protocol.fetch.continuewithauthrequest.md) | |
| [EnableRequest](./puppeteer.protocol.fetch.enablerequest.md) | |
| [FailRequestRequest](./puppeteer.protocol.fetch.failrequestrequest.md) | |
| [FulfillRequestRequest](./puppeteer.protocol.fetch.fulfillrequestrequest.md) | |
| [GetResponseBodyRequest](./puppeteer.protocol.fetch.getresponsebodyrequest.md) | |
| [GetResponseBodyResponse](./puppeteer.protocol.fetch.getresponsebodyresponse.md) | |
| [HeaderEntry](./puppeteer.protocol.fetch.headerentry.md) | Response HTTP header entry |
| [RequestPattern](./puppeteer.protocol.fetch.requestpattern.md) | |
| [RequestPausedEvent](./puppeteer.protocol.fetch.requestpausedevent.md) | Issued when the domain is enabled and the request URL matches the specified filter. The request is paused until the client responds with one of continueRequest, failRequest or fulfillRequest. The stage of the request can be determined by presence of responseErrorReason and responseStatusCode -- the request is at the response stage if either of these fields is present and in the request stage otherwise. |
| [TakeResponseBodyAsStreamRequest](./puppeteer.protocol.fetch.takeresponsebodyasstreamrequest.md) | |
| [TakeResponseBodyAsStreamResponse](./puppeteer.protocol.fetch.takeresponsebodyasstreamresponse.md) | |
## Type Aliases
| Type Alias | Description |
| --- | --- |
| [RequestId](./puppeteer.protocol.fetch.requestid.md) | Unique request identifier. |
| [RequestStage](./puppeteer.protocol.fetch.requeststage.md) | Stages of the request to handle. Request will intercept before the request is sent. Response will intercept after the response is received (but before response body is received. |