网络协议
Chrome DevTools 协议的网络域命令、事件和类型。
方法
pydoll.protocol.network.methods
GetRequestPostDataResponse
module-attribute
GetRequestPostDataResponse = Response[GetRequestPostDataResult]
GetResponseBodyForInterceptionResponse
module-attribute
GetResponseBodyForInterceptionResponse = Response[GetResponseBodyForInterceptionResult]
SearchInResponseBodyResponse
module-attribute
SearchInResponseBodyResponse = Response[SearchInResponseBodyResult]
StreamResourceContentResponse
module-attribute
StreamResourceContentResponse = Response[StreamResourceContentResult]
TakeResponseBodyForInterceptionAsStreamResponse
module-attribute
TakeResponseBodyForInterceptionAsStreamResponse = Response[TakeResponseBodyForInterceptionAsStreamResult]
CanClearBrowserCacheResponse
module-attribute
CanClearBrowserCacheResponse = Response[CanClearBrowserCacheResult]
CanClearBrowserCookiesResponse
module-attribute
CanClearBrowserCookiesResponse = Response[CanClearBrowserCookiesResult]
CanEmulateNetworkConditionsResponse
module-attribute
CanEmulateNetworkConditionsResponse = Response[CanEmulateNetworkConditionsResult]
GetSecurityIsolationStatusResponse
module-attribute
GetSecurityIsolationStatusResponse = Response[GetSecurityIsolationStatusResult]
LoadNetworkResourceResponse
module-attribute
LoadNetworkResourceResponse = Response[LoadNetworkResourceResult]
ClearBrowserCacheCommand
module-attribute
ClearBrowserCacheCommand = Command[EmptyParams, EmptyResponse]
ClearBrowserCookiesCommand
module-attribute
ClearBrowserCookiesCommand = Command[EmptyParams, EmptyResponse]
ClearCookiesCommand
module-attribute
ClearCookiesCommand = Command[DeleteCookiesParams, EmptyResponse]
EmulateNetworkConditionsCommand
module-attribute
EmulateNetworkConditionsCommand = Command[EmulateNetworkConditionsParams, EmptyResponse]
GetCookiesCommand
module-attribute
GetCookiesCommand = Command[GetCookiesParams, GetCookiesResponse]
GetRequestPostDataCommand
module-attribute
GetRequestPostDataCommand = Command[GetRequestPostDataParams, GetRequestPostDataResponse]
GetResponseBodyCommand
module-attribute
GetResponseBodyCommand = Command[GetResponseBodyParams, GetResponseBodyResponse]
SetCacheDisabledCommand
module-attribute
SetCacheDisabledCommand = Command[SetCacheDisabledParams, EmptyResponse]
SetExtraHTTPHeadersCommand
module-attribute
SetExtraHTTPHeadersCommand = Command[SetExtraHTTPHeadersParams, EmptyResponse]
SetUserAgentOverrideCommand
module-attribute
SetUserAgentOverrideCommand = Command[SetUserAgentOverrideParams, EmptyResponse]
ClearAcceptedEncodingsOverrideCommand
module-attribute
ClearAcceptedEncodingsOverrideCommand = Command[EmptyParams, EmptyResponse]
EnableReportingApiCommand
module-attribute
EnableReportingApiCommand = Command[EnableReportingApiParams, EmptyResponse]
SearchInResponseBodyCommand
module-attribute
SearchInResponseBodyCommand = Command[SearchInResponseBodyParams, SearchInResponseBodyResponse]
SetBlockedURLsCommand
module-attribute
SetBlockedURLsCommand = Command[SetBlockedURLsParams, EmptyResponse]
SetBypassServiceWorkerCommand
module-attribute
SetBypassServiceWorkerCommand = Command[SetBypassServiceWorkerParams, EmptyResponse]
GetCertificateCommand
module-attribute
GetCertificateCommand = Command[GetCertificateParams, GetCertificateResponse]
GetResponseBodyForInterceptionCommand
module-attribute
GetResponseBodyForInterceptionCommand = Command[GetResponseBodyForInterceptionParams, GetResponseBodyForInterceptionResponse]
SetAcceptedEncodingsCommand
module-attribute
SetAcceptedEncodingsCommand = Command[SetAcceptedEncodingsParams, EmptyResponse]
SetAttachDebugStackCommand
module-attribute
SetAttachDebugStackCommand = Command[SetAttachDebugStackParams, EmptyResponse]
SetCookieControlsCommand
module-attribute
SetCookieControlsCommand = Command[SetCookieControlsParams, EmptyResponse]
StreamResourceContentCommand
module-attribute
StreamResourceContentCommand = Command[StreamResourceContentParams, StreamResourceContentResponse]
TakeResponseBodyForInterceptionAsStreamCommand
module-attribute
TakeResponseBodyForInterceptionAsStreamCommand = Command[TakeResponseBodyForInterceptionAsStreamParams, TakeResponseBodyForInterceptionAsStreamResponse]
GetSecurityIsolationStatusCommand
module-attribute
GetSecurityIsolationStatusCommand = Command[GetSecurityIsolationStatusParams, GetSecurityIsolationStatusResponse]
LoadNetworkResourceCommand
module-attribute
LoadNetworkResourceCommand = Command[LoadNetworkResourceParams, LoadNetworkResourceResponse]
NetworkMethod
Bases: str
, Enum
CLEAR_BROWSER_CACHE
class-attribute
instance-attribute
CLEAR_BROWSER_COOKIES
class-attribute
instance-attribute
EMULATE_NETWORK_CONDITIONS
class-attribute
instance-attribute
GET_REQUEST_POST_DATA
class-attribute
instance-attribute
SET_BYPASS_SERVICE_WORKER
class-attribute
instance-attribute
SET_CACHE_DISABLED
class-attribute
instance-attribute
SET_EXTRA_HTTP_HEADERS
class-attribute
instance-attribute
SET_USER_AGENT_OVERRIDE
class-attribute
instance-attribute
CLEAR_ACCEPTED_ENCODINGS_OVERRIDE
class-attribute
instance-attribute
ENABLE_REPORTING_API
class-attribute
instance-attribute
GET_RESPONSE_BODY_FOR_INTERCEPTION
class-attribute
instance-attribute
GET_SECURITY_ISOLATION_STATUS
class-attribute
instance-attribute
LOAD_NETWORK_RESOURCE
class-attribute
instance-attribute
SEARCH_IN_RESPONSE_BODY
class-attribute
instance-attribute
SET_ACCEPTED_ENCODINGS
class-attribute
instance-attribute
SET_ATTACH_DEBUG_STACK
class-attribute
instance-attribute
SET_COOKIE_CONTROLS
class-attribute
instance-attribute
STREAM_RESOURCE_CONTENT
class-attribute
instance-attribute
DeleteCookiesParams
EmulateNetworkConditionsParams
Bases: TypedDict
Parameters for emulating network conditions.
NetworkEnableParams
GetCookiesParams
GetRequestPostDataParams
GetResponseBodyParams
GetCertificateParams
GetResponseBodyForInterceptionParams
SearchInResponseBodyParams
SetBypassServiceWorkerParams
SetCacheDisabledParams
SetCookieParams
Bases: TypedDict
Parameters for setting a cookie.
SetCookiesParams
SetExtraHTTPHeadersParams
SetUserAgentOverrideParams
SetBlockedURLsParams
SetAcceptedEncodingsParams
SetAttachDebugStackParams
SetCookieControlsParams
Bases: TypedDict
Parameters for setting controls for third-party cookie access.
StreamResourceContentParams
TakeResponseBodyForInterceptionAsStreamParams
SetRequestInterceptionParams
AuthChallengeResponseParams
EnableReportingApiParams
LoadNetworkResourceParams
ReplayXHRParams
GetCookiesResult
GetRequestPostDataResult
GetResponseBodyResult
GetResponseBodyForInterceptionResult
GetCertificateResult
SearchInResponseBodyResult
SetCookieResult
StreamResourceContentResult
TakeResponseBodyForInterceptionAsStreamResult
CanClearBrowserCacheResult
CanClearBrowserCookiesResult
CanEmulateNetworkConditionsResult
GetSecurityIsolationStatusResult
LoadNetworkResourceResult
事件
pydoll.protocol.network.events
EventSourceMessageReceivedEvent
module-attribute
EventSourceMessageReceivedEvent = CDPEvent[EventSourceMessageReceivedEventParams]
RequestInterceptedEvent
module-attribute
RequestInterceptedEvent = CDPEvent[RequestInterceptedEventParams]
RequestServedFromCacheEvent
module-attribute
RequestServedFromCacheEvent = CDPEvent[RequestServedFromCacheEventParams]
RequestWillBeSentEvent
module-attribute
RequestWillBeSentEvent = CDPEvent[RequestWillBeSentEventParams]
ResourceChangedPriorityEvent
module-attribute
ResourceChangedPriorityEvent = CDPEvent[ResourceChangedPriorityEventParams]
SignedExchangeReceivedEvent
module-attribute
SignedExchangeReceivedEvent = CDPEvent[SignedExchangeReceivedEventParams]
ResponseReceivedEvent
module-attribute
ResponseReceivedEvent = CDPEvent[ResponseReceivedEventParams]
WebSocketCreatedEvent
module-attribute
WebSocketCreatedEvent = CDPEvent[WebSocketCreatedEventParams]
WebSocketFrameErrorEvent
module-attribute
WebSocketFrameErrorEvent = CDPEvent[WebSocketFrameErrorEventParams]
WebSocketFrameReceivedEvent
module-attribute
WebSocketFrameReceivedEvent = CDPEvent[WebSocketFrameReceivedEventParams]
WebSocketFrameSentEvent
module-attribute
WebSocketFrameSentEvent = CDPEvent[WebSocketFrameSentEventParams]
WebSocketHandshakeResponseReceivedEvent
module-attribute
WebSocketHandshakeResponseReceivedEvent = CDPEvent[WebSocketHandshakeResponseReceivedEventParams]
WebSocketWillSendHandshakeRequestEvent
module-attribute
WebSocketWillSendHandshakeRequestEvent = CDPEvent[WebSocketWillSendHandshakeRequestEventParams]
WebTransportCreatedEvent
module-attribute
WebTransportCreatedEvent = CDPEvent[WebTransportCreatedEventParams]
WebTransportConnectionEstablishedEvent
module-attribute
WebTransportConnectionEstablishedEvent = CDPEvent[WebTransportConnectionEstablishedEventParams]
WebTransportClosedEvent
module-attribute
WebTransportClosedEvent = CDPEvent[WebTransportClosedEventParams]
DirectTCPSocketCreatedEvent
module-attribute
DirectTCPSocketCreatedEvent = CDPEvent[DirectTCPSocketCreatedEventParams]
DirectTCPSocketOpenedEvent
module-attribute
DirectTCPSocketOpenedEvent = CDPEvent[DirectTCPSocketOpenedEventParams]
DirectTCPSocketAbortedEvent
module-attribute
DirectTCPSocketAbortedEvent = CDPEvent[DirectTCPSocketAbortedEventParams]
DirectTCPSocketClosedEvent
module-attribute
DirectTCPSocketClosedEvent = CDPEvent[DirectTCPSocketClosedEventParams]
DirectTCPSocketChunkSentEvent
module-attribute
DirectTCPSocketChunkSentEvent = CDPEvent[DirectTCPSocketChunkSentEventParams]
DirectTCPSocketChunkReceivedEvent
module-attribute
DirectTCPSocketChunkReceivedEvent = CDPEvent[DirectTCPSocketChunkReceivedEventParams]
DirectUDPSocketCreatedEvent
module-attribute
DirectUDPSocketCreatedEvent = CDPEvent[DirectUDPSocketCreatedEventParams]
DirectUDPSocketOpenedEvent
module-attribute
DirectUDPSocketOpenedEvent = CDPEvent[DirectUDPSocketOpenedEventParams]
DirectUDPSocketAbortedEvent
module-attribute
DirectUDPSocketAbortedEvent = CDPEvent[DirectUDPSocketAbortedEventParams]
DirectUDPSocketClosedEvent
module-attribute
DirectUDPSocketClosedEvent = CDPEvent[DirectUDPSocketClosedEventParams]
DirectUDPSocketChunkSentEvent
module-attribute
DirectUDPSocketChunkSentEvent = CDPEvent[DirectUDPSocketChunkSentEventParams]
DirectUDPSocketChunkReceivedEvent
module-attribute
DirectUDPSocketChunkReceivedEvent = CDPEvent[DirectUDPSocketChunkReceivedEventParams]
RequestWillBeSentExtraInfoEvent
module-attribute
RequestWillBeSentExtraInfoEvent = CDPEvent[RequestWillBeSentExtraInfoEventParams]
ResponseReceivedExtraInfoEvent
module-attribute
ResponseReceivedExtraInfoEvent = CDPEvent[ResponseReceivedExtraInfoEventParams]
ResponseReceivedEarlyHintsEvent
module-attribute
ResponseReceivedEarlyHintsEvent = CDPEvent[ResponseReceivedEarlyHintsEventParams]
TrustTokenOperationDoneEvent
module-attribute
TrustTokenOperationDoneEvent = CDPEvent[TrustTokenOperationDoneEventParams]
SubresourceWebBundleMetadataReceivedEvent
module-attribute
SubresourceWebBundleMetadataReceivedEvent = CDPEvent[SubresourceWebBundleMetadataReceivedEventParams]
SubresourceWebBundleMetadataErrorEvent
module-attribute
SubresourceWebBundleMetadataErrorEvent = CDPEvent[SubresourceWebBundleMetadataErrorEventParams]
SubresourceWebBundleInnerResponseParsedEvent
module-attribute
SubresourceWebBundleInnerResponseParsedEvent = CDPEvent[SubresourceWebBundleInnerResponseParsedEventParams]
SubresourceWebBundleInnerResponseErrorEvent
module-attribute
SubresourceWebBundleInnerResponseErrorEvent = CDPEvent[SubresourceWebBundleInnerResponseErrorEventParams]
ReportingApiReportAddedEvent
module-attribute
ReportingApiReportAddedEvent = CDPEvent[ReportingApiReportAddedEventParams]
ReportingApiReportUpdatedEvent
module-attribute
ReportingApiReportUpdatedEvent = CDPEvent[ReportingApiReportUpdatedEventParams]
ReportingApiEndpointsChangedForOriginEvent
module-attribute
ReportingApiEndpointsChangedForOriginEvent = CDPEvent[ReportingApiEndpointsChangedForOriginEventParams]
NetworkEvent
Bases: str
, Enum
Events from the Network domain of the Chrome DevTools Protocol.
This enumeration contains the names of Network-related events that can be received from the Chrome DevTools Protocol. These events provide information about network activities, such as requests, responses, and WebSocket communications.
DATA_RECEIVED
class-attribute
instance-attribute
Fired when data chunk was received over the network.
PARAMETER | DESCRIPTION |
---|---|
requestId
|
Request identifier.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
dataLength
|
Data chunk length.
TYPE:
|
encodedDataLength
|
Actual bytes received (might be less than dataLength for compressed encodings).
TYPE:
|
data
|
Data that was received. (Encoded as a base64 string when passed over JSON)
TYPE:
|
EVENT_SOURCE_MESSAGE_RECEIVED
class-attribute
instance-attribute
Fired when EventSource message is received.
PARAMETER | DESCRIPTION |
---|---|
requestId
|
Request identifier.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
eventName
|
Message type.
TYPE:
|
eventId
|
Message identifier.
TYPE:
|
data
|
Message content.
TYPE:
|
LOADING_FAILED
class-attribute
instance-attribute
Fired when HTTP request has failed to load.
PARAMETER | DESCRIPTION |
---|---|
requestId
|
Request identifier.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
type
|
Resource type.
TYPE:
|
errorText
|
Error message. List of network errors: https://cs.chromium.org/chromium/src/net/base/net_error_list.h
TYPE:
|
canceled
|
True if loading was canceled.
TYPE:
|
blockedReason
|
The reason why loading was blocked, if any.
TYPE:
|
corsErrorStatus
|
The reason why loading was blocked by CORS, if any.
TYPE:
|
LOADING_FINISHED
class-attribute
instance-attribute
Fired when HTTP request has finished loading.
PARAMETER | DESCRIPTION |
---|---|
requestId
|
Request identifier.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
encodedDataLength
|
Total number of bytes received for this request.
TYPE:
|
REQUEST_SERVED_FROM_CACHE
class-attribute
instance-attribute
Fired if request ended up loading from cache.
PARAMETER | DESCRIPTION |
---|---|
requestId
|
Request identifier.
TYPE:
|
REQUEST_WILL_BE_SENT
class-attribute
instance-attribute
Fired when page is about to send HTTP request.
PARAMETER | DESCRIPTION |
---|---|
requestId
|
Request identifier.
TYPE:
|
loaderId
|
Loader identifier. Empty string if the request is fetched from worker.
TYPE:
|
documentURL
|
URL of the document this request is loaded for.
TYPE:
|
request
|
Request data.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
wallTime
|
Timestamp.
TYPE:
|
initiator
|
Request initiator.
TYPE:
|
redirectHasExtraInfo
|
In the case that redirectResponse is populated, this flag indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for the request which was just redirected.
TYPE:
|
redirectResponse
|
Redirect response data.
TYPE:
|
type
|
Type of this resource.
TYPE:
|
frameId
|
Frame identifier.
TYPE:
|
hasUserGesture
|
Whether the request is initiated by a user gesture. Defaults to false.
TYPE:
|
RESPONSE_RECEIVED
class-attribute
instance-attribute
Fired when HTTP response is available.
PARAMETER | DESCRIPTION |
---|---|
requestId
|
Request identifier.
TYPE:
|
loaderId
|
Loader identifier. Empty string if the request is fetched from worker.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
type
|
Resource type.
TYPE:
|
response
|
Response data.
TYPE:
|
hasExtraInfo
|
Indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for this request.
TYPE:
|
frameId
|
Frame identifier.
TYPE:
|
WEBSOCKET_CLOSED
class-attribute
instance-attribute
Fired when WebSocket is closed.
PARAMETER | DESCRIPTION |
---|---|
requestId
|
Request identifier.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
WEBSOCKET_CREATED
class-attribute
instance-attribute
WEBSOCKET_FRAME_ERROR
class-attribute
instance-attribute
Fired when WebSocket message error occurs.
PARAMETER | DESCRIPTION |
---|---|
requestId
|
Request identifier.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
errorMessage
|
WebSocket error message.
TYPE:
|
WEBSOCKET_FRAME_RECEIVED
class-attribute
instance-attribute
Fired when WebSocket message is received.
PARAMETER | DESCRIPTION |
---|---|
requestId
|
Request identifier.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
response
|
WebSocket response data.
TYPE:
|
WEBSOCKET_FRAME_SENT
class-attribute
instance-attribute
Fired when WebSocket message is sent.
PARAMETER | DESCRIPTION |
---|---|
requestId
|
Request identifier.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
response
|
WebSocket response data.
TYPE:
|
WEBSOCKET_HANDSHAKE_RESPONSE_RECEIVED
class-attribute
instance-attribute
Fired when WebSocket handshake response becomes available.
PARAMETER | DESCRIPTION |
---|---|
requestId
|
Request identifier.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
response
|
WebSocket response data.
TYPE:
|
WEBSOCKET_WILL_SEND_HANDSHAKE_REQUEST
class-attribute
instance-attribute
Fired when WebSocket is about to initiate handshake.
PARAMETER | DESCRIPTION |
---|---|
requestId
|
Request identifier.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
wallTime
|
UTC Timestamp.
TYPE:
|
request
|
WebSocket request data.
TYPE:
|
WEBTRANSPORT_CLOSED
class-attribute
instance-attribute
Fired when WebTransport is disposed.
PARAMETER | DESCRIPTION |
---|---|
transportId
|
WebTransport identifier.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
WEBTRANSPORT_CONNECTION_ESTABLISHED
class-attribute
instance-attribute
Fired when WebTransport handshake is finished.
PARAMETER | DESCRIPTION |
---|---|
transportId
|
WebTransport identifier.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
WEBTRANSPORT_CREATED
class-attribute
instance-attribute
Fired upon WebTransport creation.
PARAMETER | DESCRIPTION |
---|---|
transportId
|
WebTransport identifier.
TYPE:
|
url
|
WebTransport request URL.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
initiator
|
Request initiator.
TYPE:
|
DIRECT_TCP_SOCKET_ABORTED
class-attribute
instance-attribute
Fired when direct_socket.TCPSocket is aborted.
PARAMETER | DESCRIPTION |
---|---|
identifier
|
Request identifier.
TYPE:
|
errorMessage
|
Error message.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
DIRECT_TCP_SOCKET_CHUNK_RECEIVED
class-attribute
instance-attribute
Fired when data is received from tcp direct socket stream.
PARAMETER | DESCRIPTION |
---|---|
identifier
|
Request identifier.
TYPE:
|
data
|
Data received.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
DIRECT_TCP_SOCKET_CHUNK_SENT
class-attribute
instance-attribute
Fired when data is sent to tcp direct socket stream.
PARAMETER | DESCRIPTION |
---|---|
identifier
|
Request identifier.
TYPE:
|
data
|
Data sent.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
DIRECT_TCP_SOCKET_CLOSED
class-attribute
instance-attribute
Fired when direct_socket.TCPSocket is closed.
PARAMETER | DESCRIPTION |
---|---|
identifier
|
Request identifier.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
DIRECT_TCP_SOCKET_CREATED
class-attribute
instance-attribute
Fired upon direct_socket.TCPSocket creation.
PARAMETER | DESCRIPTION |
---|---|
identifier
|
Request identifier.
TYPE:
|
remoteAddr
|
Remote address.
TYPE:
|
remotePort
|
Remote port. Unsigned int 16.
TYPE:
|
options
|
Socket options.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
initiator
|
Request initiator.
TYPE:
|
DIRECT_TCP_SOCKET_OPENED
class-attribute
instance-attribute
Fired when direct_socket.TCPSocket connection is opened.
PARAMETER | DESCRIPTION |
---|---|
identifier
|
Request identifier.
TYPE:
|
remoteAddr
|
Remote address.
TYPE:
|
remotePort
|
Remote port. Expected to be unsigned integer.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
localAddr
|
Local address.
TYPE:
|
localPort
|
Local port. Expected to be unsigned integer.
TYPE:
|
DIRECT_UDP_SOCKET_ABORTED
class-attribute
instance-attribute
Fired when direct_socket.UDPSocket is aborted.
PARAMETER | DESCRIPTION |
---|---|
identifier
|
Request identifier.
TYPE:
|
errorMessage
|
Error message.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
DIRECT_UDP_SOCKET_CHUNK_RECEIVED
class-attribute
instance-attribute
Fired when message is received from udp direct socket stream.
PARAMETER | DESCRIPTION |
---|---|
identifier
|
Request identifier.
TYPE:
|
message
|
Message data.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
DIRECT_UDP_SOCKET_CHUNK_SENT
class-attribute
instance-attribute
Fired when message is sent to udp direct socket stream.
PARAMETER | DESCRIPTION |
---|---|
identifier
|
Request identifier.
TYPE:
|
message
|
Message data.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
DIRECT_UDP_SOCKET_CLOSED
class-attribute
instance-attribute
Fired when direct_socket.UDPSocket is closed.
PARAMETER | DESCRIPTION |
---|---|
identifier
|
Request identifier.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
DIRECT_UDP_SOCKET_CREATED
class-attribute
instance-attribute
Fired upon direct_socket.UDPSocket creation.
PARAMETER | DESCRIPTION |
---|---|
identifier
|
Request identifier.
TYPE:
|
options
|
Socket options.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
initiator
|
Request initiator.
TYPE:
|
DIRECT_UDP_SOCKET_OPENED
class-attribute
instance-attribute
Fired when direct_socket.UDPSocket connection is opened.
PARAMETER | DESCRIPTION |
---|---|
identifier
|
Request identifier.
TYPE:
|
localAddr
|
Local address.
TYPE:
|
localPort
|
Local port. Expected to be unsigned integer.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
remoteAddr
|
Remote address.
TYPE:
|
remotePort
|
Remote port. Expected to be unsigned integer.
TYPE:
|
POLICY_UPDATED
class-attribute
instance-attribute
Fired once security policy has been updated.
REPORTING_API_ENDPOINTS_CHANGED_FOR_ORIGIN
class-attribute
instance-attribute
Fired when Reporting API endpoints change for an origin.
PARAMETER | DESCRIPTION |
---|---|
origin
|
Origin of the document(s) which configured the endpoints.
TYPE:
|
endpoints
|
The endpoints configured for the origin.
TYPE:
|
REPORTING_API_REPORT_ADDED
class-attribute
instance-attribute
Is sent whenever a new report is added. And after 'enableReportingApi' for all existing reports.
PARAMETER | DESCRIPTION |
---|---|
report
|
The report that was added.
TYPE:
|
REPORTING_API_REPORT_UPDATED
class-attribute
instance-attribute
Fired when a report is updated.
PARAMETER | DESCRIPTION |
---|---|
report
|
The report that was updated.
TYPE:
|
REQUEST_WILL_BE_SENT_EXTRA_INFO
class-attribute
instance-attribute
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.
PARAMETER | DESCRIPTION |
---|---|
requestId
|
Request identifier. Used to match this information to an existing requestWillBeSent event.
TYPE:
|
associatedCookies
|
A list of cookies potentially associated to the requested URL. This includes both cookies sent with the request and the ones not sent; the latter are distinguished by having blockedReasons field set.
TYPE:
|
headers
|
Raw request headers as they will be sent over the wire.
TYPE:
|
connectTiming
|
Connection timing information for the request.
TYPE:
|
clientSecurityState
|
The client security state set for the request.
TYPE:
|
siteHasCookieInOtherPartition
|
Whether the site has partitioned cookies stored in a partition different than the current one.
TYPE:
|
RESOURCE_CHANGED_PRIORITY
class-attribute
instance-attribute
Fired when resource loading priority is changed.
PARAMETER | DESCRIPTION |
---|---|
requestId
|
Request identifier.
TYPE:
|
newPriority
|
New priority.
TYPE:
|
timestamp
|
Timestamp.
TYPE:
|
RESPONSE_RECEIVED_EARLY_HINTS
class-attribute
instance-attribute
Fired when 103 Early Hints headers is received in addition to the common response. Not every responseReceived event will have an responseReceivedEarlyHints fired. Only one responseReceivedEarlyHints may be fired for eached responseReceived event.
PARAMETER | DESCRIPTION |
---|---|
requestId
|
Request identifier. Used to match this information to another responseReceived event.
TYPE:
|
headers
|
Raw response headers as they were received over the wire. Duplicate headers in the response are represented as a single key with their values concatentated using \n as the separator. See also headersText that contains verbatim text for HTTP/1.*.
TYPE:
|
RESPONSE_RECEIVED_EXTRA_INFO
class-attribute
instance-attribute
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.
PARAMETER | DESCRIPTION |
---|---|
requestId
|
Request identifier. Used to match this information to another responseReceived event.
TYPE:
|
blockedCookies
|
A list of cookies which were not stored from the response along with the corresponding reasons for blocking. The cookies here may not be valid due to syntax errors, which are represented by the invalid cookie line string instead of a proper cookie.
TYPE:
|
headers
|
Raw response headers as they were received over the wire. Duplicate headers in the response are represented as a single key with their values concatentated using \n as the separator. See also headersText that contains verbatim text for HTTP/1.*.
TYPE:
|
resourceIPAddressSpace
|
The IP address space of the resource. The address space can only be determined once the transport established the connection, so we can't send it in requestWillBeSentExtraInfo.
TYPE:
|
statusCode
|
The status code of the response. This is useful in cases the request failed and no responseReceived event is triggered, which is the case for, e.g., CORS errors. This is also the correct status code for cached requests, where the status in responseReceived is a 200 and this will be 304.
TYPE:
|
headersText
|
Raw response header text as it was received over the wire. The raw text may not always be available, such as in the case of HTTP/2 or QUIC.
TYPE:
|
cookiePartitionKey
|
The cookie partition key that will be used to store partitioned cookies set in this response. Only sent when partitioned cookies are enabled.
TYPE:
|
cookiePartitionKeyOpaque
|
True if partitioned cookies are enabled, but the partition key is not serializable to string.
TYPE:
|
exemptedCookies
|
A list of cookies which should have been blocked by 3PCD but are exempted and stored from the response with the corresponding reason.
TYPE:
|
SIGNED_EXCHANGE_RECEIVED
class-attribute
instance-attribute
Fired when a signed exchange was received over the network.
PARAMETER | DESCRIPTION |
---|---|
requestId
|
Request identifier.
TYPE:
|
info
|
Information about the signed exchange response.
TYPE:
|
SUBRESOURCE_WEB_BUNDLE_INNER_RESPONSE_ERROR
class-attribute
instance-attribute
Fired when request for resources within a .wbn file failed.
PARAMETER | DESCRIPTION |
---|---|
innerRequestId
|
Request identifier of the subresource request.
TYPE:
|
innerRequestURL
|
URL of the subresource resource.
TYPE:
|
errorMessage
|
Error message.
TYPE:
|
bundleRequestId
|
Bundle request identifier. Used to match this information to another event. This made be absent in case when the instrumentation was enabled only after webbundle was parsed.
TYPE:
|
SUBRESOURCE_WEB_BUNDLE_INNER_RESPONSE_PARSED
class-attribute
instance-attribute
Fired when handling requests for resources within a .wbn file. Note: this will only be fired for resources that are requested by the webpage.
PARAMETER | DESCRIPTION |
---|---|
innerRequestId
|
Request identifier of the subresource request.
TYPE:
|
innerRequestURL
|
URL of the subresource resource.
TYPE:
|
bundleRequestId
|
Bundle request identifier. Used to match this information to another event. This made be absent in case when the instrumentation was enabled only after webbundle was parsed.
TYPE:
|
SUBRESOURCE_WEB_BUNDLE_METADATA_ERROR
class-attribute
instance-attribute
Fired once when parsing the .wbn file has failed.
PARAMETER | DESCRIPTION |
---|---|
requestId
|
Request identifier. Used to match this information to another event.
TYPE:
|
errorMessage
|
Error message.
TYPE:
|
SUBRESOURCE_WEB_BUNDLE_METADATA_RECEIVED
class-attribute
instance-attribute
Fired once when parsing the .wbn file has succeeded. The event contains the information about the web bundle contents.
PARAMETER | DESCRIPTION |
---|---|
requestId
|
Request identifier. Used to match this information to another event.
TYPE:
|
urls
|
A list of URLs of resources in the subresource Web Bundle.
TYPE:
|
TRUST_TOKEN_OPERATION_DONE
class-attribute
instance-attribute
Fired exactly once for each Trust Token operation. Depending on the type of the operation and whether the operation succeeded or failed, the event is fired before the corresponding request was sent or after the response was received.
PARAMETER | DESCRIPTION |
---|---|
status
|
Detailed success or error status of the operation. Allowed Values: Ok, InvalidArgument, MissingIssuerKeys, FailedPrecondition, ResourceExhausted, AlreadyExists, ResourceLimited, Unauthorized, BadResponse, InternalError, UnknownError, FulfilledLocally, SiteIssuerLimit
TYPE:
|
type
|
Type of Trust Token operation.
TYPE:
|
requestId
|
Request identifier.
TYPE:
|
topLevelOrigin
|
Top level origin. The context in which the operation was attempted.
TYPE:
|
issuerOrigin
|
Origin of the issuer in case of a "Issuance" or "Redemption" operation.
TYPE:
|
issuedTokenCount
|
The number of obtained Trust Tokens on a successful "Issuance" operation.
TYPE:
|
DataReceivedEventParams
EventSourceMessageReceivedEventParams
LoadingFailedEventParams
LoadingFinishedEventParams
RequestInterceptedEventParams
Bases: TypedDict
RequestWillBeSentEventParams
Bases: TypedDict
ResourceChangedPriorityEventParams
SignedExchangeReceivedEventParams
ResponseReceivedEventParams
WebSocketClosedEventParams
WebSocketCreatedEventParams
WebSocketFrameErrorEventParams
WebSocketFrameReceivedEventParams
WebSocketFrameSentEventParams
WebSocketHandshakeResponseReceivedEventParams
WebSocketWillSendHandshakeRequestEventParams
WebTransportCreatedEventParams
WebTransportConnectionEstablishedEventParams
WebTransportClosedEventParams
DirectTCPSocketCreatedEventParams
DirectTCPSocketOpenedEventParams
DirectTCPSocketAbortedEventParams
DirectTCPSocketClosedEventParams
DirectTCPSocketChunkSentEventParams
DirectTCPSocketChunkReceivedEventParams
DirectUDPSocketCreatedEventParams
DirectUDPSocketOpenedEventParams
DirectUDPSocketAbortedEventParams
DirectUDPSocketClosedEventParams
DirectUDPSocketChunkSentEventParams
DirectUDPSocketChunkReceivedEventParams
RequestWillBeSentExtraInfoEventParams
Bases: TypedDict
ResponseReceivedExtraInfoEventParams
Bases: TypedDict
ResponseReceivedEarlyHintsEventParams
TrustTokenOperationDoneEventParams
PolicyUpdatedEventParams
Bases: TypedDict
SubresourceWebBundleMetadataReceivedEventParams
SubresourceWebBundleMetadataErrorEventParams
SubresourceWebBundleInnerResponseParsedEventParams
SubresourceWebBundleInnerResponseErrorEventParams
类型
pydoll.protocol.network.types
ResourceType
Bases: str
, Enum
Resource type as it was perceived by the rendering engine.
ErrorReason
Bases: str
, Enum
Network level fetch failure reason.
INTERNET_DISCONNECTED
class-attribute
instance-attribute
RequestMethod
Bases: str
, Enum
HTTP request method.
ConnectionType
Bases: str
, Enum
The underlying connection technology that the browser is supposedly using.
CookieSameSite
CookiePriority
CookieSourceScheme
Bases: str
, Enum
Represents the source scheme of the origin that originally set the cookie. A value of "Unset" allows protocol clients to emulate legacy cookie scope for the scheme. This is a temporary ability and it will be removed in the future.
ResourceTiming
Bases: TypedDict
Timing information for the request.
ResourcePriority
Bases: str
, Enum
Loading priority of a resource request.
Request
Bases: TypedDict
HTTP request data.
SignedCertificateTimestamp
Bases: TypedDict
Details of a signed certificate timestamp (SCT).
SecurityDetails
Bases: TypedDict
Security details about a request.
CertificateTransparencyCompliance
BlockedReason
Bases: str
, Enum
The reason why request was blocked.
COEP_FRAME_RESOURCE_NEEDS_COEP_HEADER
class-attribute
instance-attribute
COOP_SANDBOXED_IFRAME_CANNOT_NAVIGATE_TO_COOP_PAGE
class-attribute
instance-attribute
COOP_SANDBOXED_IFRAME_CANNOT_NAVIGATE_TO_COOP_PAGE = 'coop-sandboxed-iframe-cannot-navigate-to-coop-page'
CORP_NOT_SAME_ORIGIN
class-attribute
instance-attribute
CORP_NOT_SAME_ORIGIN_AFTER_DEFAULTED_TO_SAME_ORIGIN_BY_COEP
class-attribute
instance-attribute
CORP_NOT_SAME_ORIGIN_AFTER_DEFAULTED_TO_SAME_ORIGIN_BY_COEP = 'corp-not-same-origin-after-defaulted-to-same-origin-by-coep'
CORP_NOT_SAME_ORIGIN_AFTER_DEFAULTED_TO_SAME_ORIGIN_BY_DIP
class-attribute
instance-attribute
CORP_NOT_SAME_ORIGIN_AFTER_DEFAULTED_TO_SAME_ORIGIN_BY_DIP = 'corp-not-same-origin-after-defaulted-to-same-origin-by-dip'
CorsError
Bases: str
, Enum
The reason why request was blocked.
WILDCARD_ORIGIN_NOT_ALLOWED
class-attribute
instance-attribute
MISSING_ALLOW_ORIGIN_HEADER
class-attribute
instance-attribute
MULTIPLE_ALLOW_ORIGIN_VALUES
class-attribute
instance-attribute
INVALID_ALLOW_ORIGIN_VALUE
class-attribute
instance-attribute
ALLOW_ORIGIN_MISMATCH
class-attribute
instance-attribute
INVALID_ALLOW_CREDENTIALS
class-attribute
instance-attribute
PREFLIGHT_INVALID_STATUS
class-attribute
instance-attribute
PREFLIGHT_DISALLOWED_REDIRECT
class-attribute
instance-attribute
PREFLIGHT_WILDCARD_ORIGIN_NOT_ALLOWED
class-attribute
instance-attribute
PREFLIGHT_MISSING_ALLOW_ORIGIN_HEADER
class-attribute
instance-attribute
PREFLIGHT_MULTIPLE_ALLOW_ORIGIN_VALUES
class-attribute
instance-attribute
PREFLIGHT_INVALID_ALLOW_ORIGIN_VALUE
class-attribute
instance-attribute
PREFLIGHT_ALLOW_ORIGIN_MISMATCH
class-attribute
instance-attribute
PREFLIGHT_INVALID_ALLOW_CREDENTIALS
class-attribute
instance-attribute
PREFLIGHT_MISSING_ALLOW_EXTERNAL
class-attribute
instance-attribute
PREFLIGHT_INVALID_ALLOW_EXTERNAL
class-attribute
instance-attribute
PREFLIGHT_MISSING_ALLOW_PRIVATE_NETWORK
class-attribute
instance-attribute
PREFLIGHT_INVALID_ALLOW_PRIVATE_NETWORK
class-attribute
instance-attribute
INVALID_ALLOW_METHODS_PREFLIGHT_RESPONSE
class-attribute
instance-attribute
INVALID_ALLOW_HEADERS_PREFLIGHT_RESPONSE
class-attribute
instance-attribute
METHOD_DISALLOWED_BY_PREFLIGHT_RESPONSE
class-attribute
instance-attribute
HEADER_DISALLOWED_BY_PREFLIGHT_RESPONSE
class-attribute
instance-attribute
REDIRECT_CONTAINS_CREDENTIALS
class-attribute
instance-attribute
INSECURE_PRIVATE_NETWORK
class-attribute
instance-attribute
INVALID_PRIVATE_NETWORK_ACCESS
class-attribute
instance-attribute
UNEXPECTED_PRIVATE_NETWORK_ACCESS
class-attribute
instance-attribute
NO_CORS_REDIRECT_MODE_NOT_FOLLOW
class-attribute
instance-attribute
PREFLIGHT_MISSING_PRIVATE_NETWORK_ACCESS_ID
class-attribute
instance-attribute
PREFLIGHT_MISSING_PRIVATE_NETWORK_ACCESS_NAME
class-attribute
instance-attribute
PRIVATE_NETWORK_ACCESS_PERMISSION_UNAVAILABLE
class-attribute
instance-attribute
PRIVATE_NETWORK_ACCESS_PERMISSION_DENIED
class-attribute
instance-attribute
CorsErrorStatus
ServiceWorkerResponseSource
Bases: str
, Enum
Source of serviceworker response.
TrustTokenParams
Bases: TypedDict
Determines what type of Trust Token operation is executed and depending on the type, some additional parameters. The values are specified in third_party/blink/renderer/core/fetch/trust_token.idl.
TrustTokenOperationType
AlternateProtocolUsage
Bases: str
, Enum
The reason why Chrome uses a specific transport protocol for HTTP semantics.
ALTERNATIVE_JOB_WON_WITHOUT_RACE
class-attribute
instance-attribute
ALTERNATIVE_JOB_WON_RACE
class-attribute
instance-attribute
DNS_ALPN_H3_JOB_WON_WITHOUT_RACE
class-attribute
instance-attribute
DNS_ALPN_H3_JOB_WON_RACE
class-attribute
instance-attribute
ServiceWorkerRouterSource
Bases: str
, Enum
Source of service worker router.
ServiceWorkerRouterInfo
Response
Bases: TypedDict
HTTP response data.
WebSocketResponse
WebSocketFrame
CachedResource
Initiator
CookiePartitionKey
Cookie
Bases: TypedDict
Cookie object
SetCookieBlockedReason
Bases: str
, Enum
Types of reasons why a cookie may not be stored from a response.
SAME_SITE_UNSPECIFIED_TREATED_AS_LAX
class-attribute
instance-attribute
SAME_SITE_NONE_INSECURE
class-attribute
instance-attribute
THIRD_PARTY_BLOCKED_IN_FIRST_PARTY_SET
class-attribute
instance-attribute
SCHEMEFUL_SAME_SITE_STRICT
class-attribute
instance-attribute
SCHEMEFUL_SAME_SITE_LAX
class-attribute
instance-attribute
SCHEMEFUL_SAME_SITE_UNSPECIFIED_TREATED_AS_LAX
class-attribute
instance-attribute
SAME_PARTY_FROM_CROSS_PARTY_CONTEXT
class-attribute
instance-attribute
SAME_PARTY_CONFLICTS_WITH_OTHER_ATTRIBUTES
class-attribute
instance-attribute
NAME_VALUE_PAIR_EXCEEDS_MAX_SIZE
class-attribute
instance-attribute
DISALLOWED_CHARACTER
class-attribute
instance-attribute
CookieBlockedReason
Bases: str
, Enum
Types of reasons why a cookie may not be sent with a request.
SAME_SITE_UNSPECIFIED_TREATED_AS_LAX
class-attribute
instance-attribute
SAME_SITE_NONE_INSECURE
class-attribute
instance-attribute
THIRD_PARTY_BLOCKED_IN_FIRST_PARTY_SET
class-attribute
instance-attribute
SCHEMEFUL_SAME_SITE_STRICT
class-attribute
instance-attribute
SCHEMEFUL_SAME_SITE_LAX
class-attribute
instance-attribute
SCHEMEFUL_SAME_SITE_UNSPECIFIED_TREATED_AS_LAX
class-attribute
instance-attribute
SAME_PARTY_FROM_CROSS_PARTY_CONTEXT
class-attribute
instance-attribute
NAME_VALUE_PAIR_EXCEEDS_MAX_SIZE
class-attribute
instance-attribute
CookieExemptionReason
Bases: str
, Enum
Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.
TPCD_DEPRECATION_TRIAL
class-attribute
instance-attribute
TOP_LEVEL_TPCD_DEPRECATION_TRIAL
class-attribute
instance-attribute
TOP_LEVEL_STORAGE_ACCESS
class-attribute
instance-attribute
BlockedSetCookieWithReason
ExemptedSetCookieWithReason
Bases: TypedDict
A cookie should have been blocked by 3PCD but is exempted and stored from a response with the corresponding reason. A cookie could only have at most one exemption reason.
AssociatedCookie
CookieParam
Bases: TypedDict
Cookie parameter object
AuthChallenge
AuthChallengeResponse
InterceptionStage
Bases: str
, Enum
Stages of the interception to begin intercepting. Request will intercept before the request is sent. Response will intercept after the response is received.
RequestPattern
SignedExchangeSignature
Bases: TypedDict
Information about a signed exchange signature.
SignedExchangeHeader
SignedExchangeErrorField
Bases: str
, Enum
Field type for a signed exchange related error.
SIGNATURE_CERT_SHA256
class-attribute
instance-attribute
SIGNATURE_VALIDITY_URL
class-attribute
instance-attribute
SignedExchangeError
SignedExchangeInfo
ContentEncoding
DirectSocketDnsQueryType
DirectTCPSocketOptions
DirectUDPSocketOptions
Bases: TypedDict
DirectUDPMessage
PrivateNetworkRequestPolicy
Bases: str
, Enum
BLOCK_FROM_INSECURE_TO_MORE_PRIVATE
class-attribute
instance-attribute
WARN_FROM_INSECURE_TO_MORE_PRIVATE
class-attribute
instance-attribute
IPAddressSpace
ClientSecurityState
CrossOriginOpenerPolicyValue
Bases: str
, Enum
SAME_ORIGIN_ALLOW_POPUPS
class-attribute
instance-attribute
SAME_ORIGIN_PLUS_COEP
class-attribute
instance-attribute
RESTRICT_PROPERTIES_PLUS_COEP
class-attribute
instance-attribute
CrossOriginOpenerPolicyStatus
CrossOriginEmbedderPolicyValue
CrossOriginEmbedderPolicyStatus
ContentSecurityPolicySource
ContentSecurityPolicyStatus
SecurityIsolationStatus
ReportStatus
Bases: str
, Enum
The status of a Reporting API report.
ReportId
Bases: str
ReportingApiReport
Bases: TypedDict
An object representing a report generated by the Reporting API.
ReportingApiEndpoint
LoadNetworkResourcePageResult
Bases: TypedDict
An object providing the result of a network resource load.