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
- Network.enable
- Network.loadNetworkResource Experimental
Types
Methods
Network.enable #
Enables network tracking, network events will now be delivered to the client.
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
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