Skip to content

Latest commit

 

History

History
115 lines (105 loc) · 12.1 KB

puppeteer.protocol.network.md

File metadata and controls

115 lines (105 loc) · 12.1 KB

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 

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
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
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.
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.
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
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.
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.