e89e264a16
This corresponds to Chromium 85.0.4182.0. This roll includes: - Enable SameSiteByDefaultCookies and CookiesWithoutSameSiteMustBeSecure https://crrev.com/c/2231445 - [FlexNG] Enable FlexNG by default https://crrev.com/c/2216595 Closes #6151.
126 lines
13 KiB
Markdown
126 lines
13 KiB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Network](./puppeteer.protocol.network.md)
|
|
|
|
## Protocol.Network namespace
|
|
|
|
Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
export namespace Network
|
|
```
|
|
|
|
## Enumerations
|
|
|
|
| Enumeration | Description |
|
|
| --- | --- |
|
|
| [AuthChallengeResponseResponse](./puppeteer.protocol.network.authchallengeresponseresponse.md) | |
|
|
| [AuthChallengeSource](./puppeteer.protocol.network.authchallengesource.md) | |
|
|
| [InitiatorType](./puppeteer.protocol.network.initiatortype.md) | |
|
|
| [RequestReferrerPolicy](./puppeteer.protocol.network.requestreferrerpolicy.md) | |
|
|
|
|
## Interfaces
|
|
|
|
| Interface | Description |
|
|
| --- | --- |
|
|
| [AuthChallenge](./puppeteer.protocol.network.authchallenge.md) | Authorization challenge for HTTP status code 401 or 407. |
|
|
| [AuthChallengeResponse](./puppeteer.protocol.network.authchallengeresponse.md) | Response to an AuthChallenge. |
|
|
| [BlockedCookieWithReason](./puppeteer.protocol.network.blockedcookiewithreason.md) | A cookie with was not sent with a request with the corresponding reason. |
|
|
| [BlockedSetCookieWithReason](./puppeteer.protocol.network.blockedsetcookiewithreason.md) | A cookie which was not stored from a response with the corresponding reason. |
|
|
| [CachedResource](./puppeteer.protocol.network.cachedresource.md) | Information about the cached resource. |
|
|
| [CanClearBrowserCacheResponse](./puppeteer.protocol.network.canclearbrowsercacheresponse.md) | |
|
|
| [CanClearBrowserCookiesResponse](./puppeteer.protocol.network.canclearbrowsercookiesresponse.md) | |
|
|
| [CanEmulateNetworkConditionsResponse](./puppeteer.protocol.network.canemulatenetworkconditionsresponse.md) | |
|
|
| [ContinueInterceptedRequestRequest](./puppeteer.protocol.network.continueinterceptedrequestrequest.md) | |
|
|
| [Cookie](./puppeteer.protocol.network.cookie.md) | Cookie object |
|
|
| [CookieParam](./puppeteer.protocol.network.cookieparam.md) | Cookie parameter object |
|
|
| [DataReceivedEvent](./puppeteer.protocol.network.datareceivedevent.md) | Fired when data chunk was received over the network. |
|
|
| [DeleteCookiesRequest](./puppeteer.protocol.network.deletecookiesrequest.md) | |
|
|
| [EmulateNetworkConditionsRequest](./puppeteer.protocol.network.emulatenetworkconditionsrequest.md) | |
|
|
| [EnableRequest](./puppeteer.protocol.network.enablerequest.md) | |
|
|
| [EventSourceMessageReceivedEvent](./puppeteer.protocol.network.eventsourcemessagereceivedevent.md) | Fired when EventSource message is received. |
|
|
| [GetAllCookiesResponse](./puppeteer.protocol.network.getallcookiesresponse.md) | |
|
|
| [GetCertificateRequest](./puppeteer.protocol.network.getcertificaterequest.md) | |
|
|
| [GetCertificateResponse](./puppeteer.protocol.network.getcertificateresponse.md) | |
|
|
| [GetCookiesRequest](./puppeteer.protocol.network.getcookiesrequest.md) | |
|
|
| [GetCookiesResponse](./puppeteer.protocol.network.getcookiesresponse.md) | |
|
|
| [GetRequestPostDataRequest](./puppeteer.protocol.network.getrequestpostdatarequest.md) | |
|
|
| [GetRequestPostDataResponse](./puppeteer.protocol.network.getrequestpostdataresponse.md) | |
|
|
| [GetResponseBodyForInterceptionRequest](./puppeteer.protocol.network.getresponsebodyforinterceptionrequest.md) | |
|
|
| [GetResponseBodyForInterceptionResponse](./puppeteer.protocol.network.getresponsebodyforinterceptionresponse.md) | |
|
|
| [GetResponseBodyRequest](./puppeteer.protocol.network.getresponsebodyrequest.md) | |
|
|
| [GetResponseBodyResponse](./puppeteer.protocol.network.getresponsebodyresponse.md) | |
|
|
| [Headers](./puppeteer.protocol.network.headers.md) | Request / response headers as keys / values of JSON object. |
|
|
| [Initiator](./puppeteer.protocol.network.initiator.md) | Information about the request initiator. |
|
|
| [LoadingFailedEvent](./puppeteer.protocol.network.loadingfailedevent.md) | Fired when HTTP request has failed to load. |
|
|
| [LoadingFinishedEvent](./puppeteer.protocol.network.loadingfinishedevent.md) | Fired when HTTP request has finished loading. |
|
|
| [ReplayXHRRequest](./puppeteer.protocol.network.replayxhrrequest.md) | |
|
|
| [Request](./puppeteer.protocol.network.request.md) | HTTP request data. |
|
|
| [RequestInterceptedEvent](./puppeteer.protocol.network.requestinterceptedevent.md) | Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead. |
|
|
| [RequestPattern](./puppeteer.protocol.network.requestpattern.md) | Request pattern for interception. |
|
|
| [RequestServedFromCacheEvent](./puppeteer.protocol.network.requestservedfromcacheevent.md) | Fired if request ended up loading from cache. |
|
|
| [RequestWillBeSentEvent](./puppeteer.protocol.network.requestwillbesentevent.md) | Fired when page is about to send HTTP request. |
|
|
| [RequestWillBeSentExtraInfoEvent](./puppeteer.protocol.network.requestwillbesentextrainfoevent.md) | Fired when additional information about a requestWillBeSent event is available from the network stack. Not every requestWillBeSent event will have an additional requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent or requestWillBeSentExtraInfo will be fired first for the same request. |
|
|
| [ResourceChangedPriorityEvent](./puppeteer.protocol.network.resourcechangedpriorityevent.md) | Fired when resource loading priority is changed |
|
|
| [ResourceTiming](./puppeteer.protocol.network.resourcetiming.md) | Timing information for the request. |
|
|
| [Response](./puppeteer.protocol.network.response.md) | HTTP response data. |
|
|
| [ResponseReceivedEvent](./puppeteer.protocol.network.responsereceivedevent.md) | Fired when HTTP response is available. |
|
|
| [ResponseReceivedExtraInfoEvent](./puppeteer.protocol.network.responsereceivedextrainfoevent.md) | Fired when additional information about a responseReceived event is available from the network stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for it, and responseReceivedExtraInfo may be fired before or after responseReceived. |
|
|
| [SearchInResponseBodyRequest](./puppeteer.protocol.network.searchinresponsebodyrequest.md) | |
|
|
| [SearchInResponseBodyResponse](./puppeteer.protocol.network.searchinresponsebodyresponse.md) | |
|
|
| [SecurityDetails](./puppeteer.protocol.network.securitydetails.md) | Security details about a request. |
|
|
| [SetBlockedURLsRequest](./puppeteer.protocol.network.setblockedurlsrequest.md) | |
|
|
| [SetBypassServiceWorkerRequest](./puppeteer.protocol.network.setbypassserviceworkerrequest.md) | |
|
|
| [SetCacheDisabledRequest](./puppeteer.protocol.network.setcachedisabledrequest.md) | |
|
|
| [SetCookieRequest](./puppeteer.protocol.network.setcookierequest.md) | |
|
|
| [SetCookieResponse](./puppeteer.protocol.network.setcookieresponse.md) | |
|
|
| [SetCookiesRequest](./puppeteer.protocol.network.setcookiesrequest.md) | |
|
|
| [SetDataSizeLimitsForTestRequest](./puppeteer.protocol.network.setdatasizelimitsfortestrequest.md) | |
|
|
| [SetExtraHTTPHeadersRequest](./puppeteer.protocol.network.setextrahttpheadersrequest.md) | |
|
|
| [SetRequestInterceptionRequest](./puppeteer.protocol.network.setrequestinterceptionrequest.md) | |
|
|
| [SetUserAgentOverrideRequest](./puppeteer.protocol.network.setuseragentoverriderequest.md) | |
|
|
| [SignedCertificateTimestamp](./puppeteer.protocol.network.signedcertificatetimestamp.md) | Details of a signed certificate timestamp (SCT). |
|
|
| [SignedExchangeError](./puppeteer.protocol.network.signedexchangeerror.md) | Information about a signed exchange response. |
|
|
| [SignedExchangeHeader](./puppeteer.protocol.network.signedexchangeheader.md) | Information about a signed exchange header. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html\#cbor-representation |
|
|
| [SignedExchangeInfo](./puppeteer.protocol.network.signedexchangeinfo.md) | Information about a signed exchange response. |
|
|
| [SignedExchangeReceivedEvent](./puppeteer.protocol.network.signedexchangereceivedevent.md) | Fired when a signed exchange was received over the network |
|
|
| [SignedExchangeSignature](./puppeteer.protocol.network.signedexchangesignature.md) | Information about a signed exchange signature. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html\#rfc.section.3.1 |
|
|
| [TakeResponseBodyForInterceptionAsStreamRequest](./puppeteer.protocol.network.takeresponsebodyforinterceptionasstreamrequest.md) | |
|
|
| [TakeResponseBodyForInterceptionAsStreamResponse](./puppeteer.protocol.network.takeresponsebodyforinterceptionasstreamresponse.md) | |
|
|
| [WebSocketClosedEvent](./puppeteer.protocol.network.websocketclosedevent.md) | Fired when WebSocket is closed. |
|
|
| [WebSocketCreatedEvent](./puppeteer.protocol.network.websocketcreatedevent.md) | Fired upon WebSocket creation. |
|
|
| [WebSocketFrame](./puppeteer.protocol.network.websocketframe.md) | WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests. |
|
|
| [WebSocketFrameErrorEvent](./puppeteer.protocol.network.websocketframeerrorevent.md) | Fired when WebSocket message error occurs. |
|
|
| [WebSocketFrameReceivedEvent](./puppeteer.protocol.network.websocketframereceivedevent.md) | Fired when WebSocket message is received. |
|
|
| [WebSocketFrameSentEvent](./puppeteer.protocol.network.websocketframesentevent.md) | Fired when WebSocket message is sent. |
|
|
| [WebSocketHandshakeResponseReceivedEvent](./puppeteer.protocol.network.websockethandshakeresponsereceivedevent.md) | Fired when WebSocket handshake response becomes available. |
|
|
| [WebSocketRequest](./puppeteer.protocol.network.websocketrequest.md) | WebSocket request data. |
|
|
| [WebSocketResponse](./puppeteer.protocol.network.websocketresponse.md) | WebSocket response data. |
|
|
| [WebSocketWillSendHandshakeRequestEvent](./puppeteer.protocol.network.websocketwillsendhandshakerequestevent.md) | Fired when WebSocket is about to initiate handshake. |
|
|
|
|
## Type Aliases
|
|
|
|
| Type Alias | Description |
|
|
| --- | --- |
|
|
| [BlockedReason](./puppeteer.protocol.network.blockedreason.md) | The reason why request was blocked. |
|
|
| [CertificateTransparencyCompliance](./puppeteer.protocol.network.certificatetransparencycompliance.md) | Whether the request complied with Certificate Transparency policy. |
|
|
| [ConnectionType](./puppeteer.protocol.network.connectiontype.md) | The underlying connection technology that the browser is supposedly using. |
|
|
| [CookieBlockedReason](./puppeteer.protocol.network.cookieblockedreason.md) | Types of reasons why a cookie may not be sent with a request. |
|
|
| [CookiePriority](./puppeteer.protocol.network.cookiepriority.md) | Represents the cookie's 'Priority' status: https://tools.ietf.org/html/draft-west-cookie-priority-00 |
|
|
| [CookieSameSite](./puppeteer.protocol.network.cookiesamesite.md) | Represents the cookie's 'SameSite' status: https://tools.ietf.org/html/draft-west-first-party-cookies |
|
|
| [ErrorReason](./puppeteer.protocol.network.errorreason.md) | Network level fetch failure reason. |
|
|
| [InterceptionId](./puppeteer.protocol.network.interceptionid.md) | Unique intercepted request identifier. |
|
|
| [InterceptionStage](./puppeteer.protocol.network.interceptionstage.md) | Stages of the interception to begin intercepting. Request will intercept before the request is sent. Response will intercept after the response is received. |
|
|
| [LoaderId](./puppeteer.protocol.network.loaderid.md) | Unique loader identifier. |
|
|
| [MonotonicTime](./puppeteer.protocol.network.monotonictime.md) | Monotonically increasing time in seconds since an arbitrary point in the past. |
|
|
| [RequestId](./puppeteer.protocol.network.requestid.md) | Unique request identifier. |
|
|
| [ResourcePriority](./puppeteer.protocol.network.resourcepriority.md) | Loading priority of a resource request. |
|
|
| [ResourceType](./puppeteer.protocol.network.resourcetype.md) | Resource type as it was perceived by the rendering engine. |
|
|
| [ServiceWorkerResponseSource](./puppeteer.protocol.network.serviceworkerresponsesource.md) | Source of serviceworker response. |
|
|
| [SetCookieBlockedReason](./puppeteer.protocol.network.setcookieblockedreason.md) | Types of reasons why a cookie may not be stored from a response. |
|
|
| [SignedExchangeErrorField](./puppeteer.protocol.network.signedexchangeerrorfield.md) | Field type for a signed exchange related error. |
|
|
| [TimeSinceEpoch](./puppeteer.protocol.network.timesinceepoch.md) | UTC time in seconds, counted from January 1, 1970. |
|
|
|