puppeteer/new-docs/puppeteer.protocol.network.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

14 KiB

Home > puppeteer > Protocol > Network

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.

Signature:

export namespace Network 

Enumerations

Enumeration Description
AuthChallengeResponseResponse
AuthChallengeSource
InitiatorType
RequestReferrerPolicy

Interfaces

Interface Description
AuthChallenge Authorization challenge for HTTP status code 401 or 407.
AuthChallengeResponse Response to an AuthChallenge.
BlockedCookieWithReason A cookie with was not sent with a request with the corresponding reason.
BlockedSetCookieWithReason A cookie which was not stored from a response with the corresponding reason.
CachedResource Information about the cached resource.
CanClearBrowserCacheResponse
CanClearBrowserCookiesResponse
CanEmulateNetworkConditionsResponse
ContinueInterceptedRequestRequest
Cookie Cookie object
CookieParam Cookie parameter object
CrossOriginEmbedderPolicyStatus
CrossOriginOpenerPolicyStatus
DataReceivedEvent Fired when data chunk was received over the network.
DeleteCookiesRequest
EmulateNetworkConditionsRequest
EnableRequest
EventSourceMessageReceivedEvent Fired when EventSource message is received.
GetAllCookiesResponse
GetCertificateRequest
GetCertificateResponse
GetCookiesRequest
GetCookiesResponse
GetRequestPostDataRequest
GetRequestPostDataResponse
GetResponseBodyForInterceptionRequest
GetResponseBodyForInterceptionResponse
GetResponseBodyRequest
GetResponseBodyResponse
GetSecurityIsolationStatusRequest
GetSecurityIsolationStatusResponse
Headers Request / response headers as keys / values of JSON object.
Initiator Information about the request initiator.
LoadingFailedEvent Fired when HTTP request has failed to load.
LoadingFinishedEvent Fired when HTTP request has finished loading.
PostDataEntry Post data entry for HTTP request
ReplayXHRRequest
Request HTTP request data.
RequestInterceptedEvent Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead.
RequestPattern Request pattern for interception.
RequestServedFromCacheEvent Fired if request ended up loading from cache.
RequestWillBeSentEvent Fired when page is about to send HTTP request.
RequestWillBeSentExtraInfoEvent 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 Fired when resource loading priority is changed
ResourceTiming Timing information for the request.
Response HTTP response data.
ResponseReceivedEvent Fired when HTTP response is available.
ResponseReceivedExtraInfoEvent 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
SearchInResponseBodyResponse
SecurityDetails Security details about a request.
SecurityIsolationStatus
SetBlockedURLsRequest
SetBypassServiceWorkerRequest
SetCacheDisabledRequest
SetCookieRequest
SetCookieResponse
SetCookiesRequest
SetDataSizeLimitsForTestRequest
SetExtraHTTPHeadersRequest
SetRequestInterceptionRequest
SetUserAgentOverrideRequest
SignedCertificateTimestamp Details of a signed certificate timestamp (SCT).
SignedExchangeError Information about a signed exchange response.
SignedExchangeHeader Information about a signed exchange header. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation
SignedExchangeInfo Information about a signed exchange response.
SignedExchangeReceivedEvent Fired when a signed exchange was received over the network
SignedExchangeSignature Information about a signed exchange signature. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1
TakeResponseBodyForInterceptionAsStreamRequest
TakeResponseBodyForInterceptionAsStreamResponse
WebSocketClosedEvent Fired when WebSocket is closed.
WebSocketCreatedEvent Fired upon WebSocket creation.
WebSocketFrame WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.
WebSocketFrameErrorEvent Fired when WebSocket message error occurs.
WebSocketFrameReceivedEvent Fired when WebSocket message is received.
WebSocketFrameSentEvent Fired when WebSocket message is sent.
WebSocketHandshakeResponseReceivedEvent Fired when WebSocket handshake response becomes available.
WebSocketRequest WebSocket request data.
WebSocketResponse WebSocket response data.
WebSocketWillSendHandshakeRequestEvent Fired when WebSocket is about to initiate handshake.

Type Aliases

Type Alias Description
BlockedReason The reason why request was blocked.
CertificateTransparencyCompliance Whether the request complied with Certificate Transparency policy.
ConnectionType The underlying connection technology that the browser is supposedly using.
CookieBlockedReason Types of reasons why a cookie may not be sent with a request.
CookiePriority Represents the cookie's 'Priority' status: https://tools.ietf.org/html/draft-west-cookie-priority-00
CookieSameSite Represents the cookie's 'SameSite' status: https://tools.ietf.org/html/draft-west-first-party-cookies
CrossOriginEmbedderPolicyValue
CrossOriginOpenerPolicyValue
ErrorReason Network level fetch failure reason.
InterceptionId Unique intercepted request identifier.
InterceptionStage Stages of the interception to begin intercepting. Request will intercept before the request is sent. Response will intercept after the response is received.
LoaderId Unique loader identifier.
MonotonicTime Monotonically increasing time in seconds since an arbitrary point in the past.
RequestId Unique request identifier.
ResourcePriority Loading priority of a resource request.
ResourceType Resource type as it was perceived by the rendering engine.
ServiceWorkerResponseSource Source of serviceworker response.
SetCookieBlockedReason Types of reasons why a cookie may not be stored from a response.
SignedExchangeErrorField Field type for a signed exchange related error.
TimeSinceEpoch UTC time in seconds, counted from January 1, 1970.