28 lines
2.5 KiB
Markdown
28 lines
2.5 KiB
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Fetch](./puppeteer.protocol.fetch.md) > [RequestPausedEvent](./puppeteer.protocol.fetch.requestpausedevent.md)
|
||
|
|
||
|
## Protocol.Fetch.RequestPausedEvent interface
|
||
|
|
||
|
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.
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
export interface RequestPausedEvent
|
||
|
```
|
||
|
|
||
|
## Properties
|
||
|
|
||
|
| Property | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| [frameId](./puppeteer.protocol.fetch.requestpausedevent.frameid.md) | [Page.FrameId](./puppeteer.protocol.page.frameid.md) | The id of the frame that initiated the request. |
|
||
|
| [networkId](./puppeteer.protocol.fetch.requestpausedevent.networkid.md) | [RequestId](./puppeteer.protocol.fetch.requestid.md) | If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, then this networkId will be the same as the requestId present in the requestWillBeSent event. |
|
||
|
| [request](./puppeteer.protocol.fetch.requestpausedevent.request.md) | [Network.Request](./puppeteer.protocol.network.request.md) | The details of the request. |
|
||
|
| [requestId](./puppeteer.protocol.fetch.requestpausedevent.requestid.md) | [RequestId](./puppeteer.protocol.fetch.requestid.md) | Each request the page makes will have a unique id. |
|
||
|
| [resourceType](./puppeteer.protocol.fetch.requestpausedevent.resourcetype.md) | [Network.ResourceType](./puppeteer.protocol.network.resourcetype.md) | How the requested resource will be used. |
|
||
|
| [responseErrorReason](./puppeteer.protocol.fetch.requestpausedevent.responseerrorreason.md) | [Network.ErrorReason](./puppeteer.protocol.network.errorreason.md) | Response error if intercepted at response stage. |
|
||
|
| [responseHeaders](./puppeteer.protocol.fetch.requestpausedevent.responseheaders.md) | [HeaderEntry](./puppeteer.protocol.fetch.headerentry.md)<!-- -->\[\] | Response headers if intercepted at the response stage. |
|
||
|
| [responseStatusCode](./puppeteer.protocol.fetch.requestpausedevent.responsestatuscode.md) | [integer](./puppeteer.protocol.integer.md) | Response code if intercepted at response stage. |
|
||
|
|