Network Domain
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.
Methods
Types
Methods
Network.disable #
Disables network tracking, prevents network events from being sent to the client.
Network.disable support is experimental.
Network.enable #
Enables network tracking, network events will now be delivered to the client.
Network.enable support is experimental.
Parameters
maxTotalBufferSize
Optional
integer
Buffer size in bytes to use when preserving network payloads (XHRs, etc).
maxResourceBufferSize
Optional
integer
Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).
maxPostDataSize
Optional
integer
Longest post body size (in bytes) that would be included in requestWillBeSent notification
reportDirectSocketTraffic
Optional
boolean
Whether DirectSocket chunk send/receive events should be reported.
Network.getResponseBody #
Returns content served for the given request.
Network.getResponseBody support is experimental.
Parameters
requestId
Identifier of the network request to get content for.
Return object
body
string
Response body.
base64Encoded
boolean
True, if content was sent as base64.
Network.loadNetworkResource Experimental#
Fetches the resource and returns the content.
Parameters
frameId
Optional
Frame id to get the resource for. Mandatory for frame targets, and should be omitted for worker targets.
url
string
URL of the resource to get content for.
options
Options for the request.
Return object
resource
Types
Network.RequestId #
Unique network request identifier. Note that this does not identify individual HTTP requests that are part of a network request.
Type: string