puppeteer/new-docs/puppeteer.protocol.network.request.md
Maksim Sadym 62ac167339
feat(chromium): roll Chromium to r800071 (#6407)
* roll Chromium to version 86, r800071
* roll Chrome DevTools protocol version to 0.0.799653
* fix HTTPRequest.continue after
  * CDP: accept post data in the binary form in Fetch.continueRequest.
    https://chromium-review.googlesource.com/c/chromium/src/+/2315239
* update new-docs
2020-09-09 21:23:46 +02:00

2.4 KiB

Home > puppeteer > Protocol > Network > Request

Protocol.Network.Request interface

HTTP request data.

Signature:

export interface Request 

Properties

Property Type Description
hasPostData 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 Headers HTTP request headers.
initialPriority ResourcePriority Priority of the resource request at the time request is sent.
isLinkPreload boolean Whether is loaded via link preload.
method string HTTP request method.
mixedContentType Security.MixedContentType The mixed content type of the request.
postData string HTTP POST request data.
postDataEntries PostDataEntry[] Request body elements. This will be converted from base64 to binary
referrerPolicy ('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 string Request URL (without fragment).
urlFragment string Fragment of the requested URL starting with hash, if present.