puppeteer/new-docs/puppeteer.protocol.network.request.md

31 lines
2.4 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; [Network](./puppeteer.protocol.network.md) &gt; [Request](./puppeteer.protocol.network.request.md)
## Protocol.Network.Request interface
HTTP request data.
<b>Signature:</b>
```typescript
export interface Request
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [hasPostData](./puppeteer.protocol.network.request.haspostdata.md) | boolean | True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long. |
| [headers](./puppeteer.protocol.network.request.headers.md) | [Headers](./puppeteer.protocol.network.headers.md) | HTTP request headers. |
| [initialPriority](./puppeteer.protocol.network.request.initialpriority.md) | [ResourcePriority](./puppeteer.protocol.network.resourcepriority.md) | Priority of the resource request at the time request is sent. |
| [isLinkPreload](./puppeteer.protocol.network.request.islinkpreload.md) | boolean | Whether is loaded via link preload. |
| [method](./puppeteer.protocol.network.request.method.md) | string | HTTP request method. |
| [mixedContentType](./puppeteer.protocol.network.request.mixedcontenttype.md) | [Security.MixedContentType](./puppeteer.protocol.security.mixedcontenttype.md) | The mixed content type of the request. |
| [postData](./puppeteer.protocol.network.request.postdata.md) | string | HTTP POST request data. |
| [postDataEntries](./puppeteer.protocol.network.request.postdataentries.md) | [PostDataEntry](./puppeteer.protocol.network.postdataentry.md)<!-- -->\[\] | Request body elements. This will be converted from base64 to binary |
| [referrerPolicy](./puppeteer.protocol.network.request.referrerpolicy.md) | ('unsafe-url' \| 'no-referrer-when-downgrade' \| 'no-referrer' \| 'origin' \| 'origin-when-cross-origin' \| 'same-origin' \| 'strict-origin' \| 'strict-origin-when-cross-origin') | The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/ (RequestReferrerPolicy enum) |
| [url](./puppeteer.protocol.network.request.url.md) | string | Request URL (without fragment). |
| [urlFragment](./puppeteer.protocol.network.request.urlfragment.md) | string | Fragment of the requested URL starting with hash, if present. |