Expand description
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.
Method names for the Network domain, for use with
CdpClient::call.
Constants§
- CAN_
CLEAR_ BROWSER_ CACHE - Tells whether clearing browser cache is supported.
- CAN_
CLEAR_ BROWSER_ COOKIES - Tells whether clearing browser cookies is supported.
- CAN_
EMULATE_ NETWORK_ CONDITIONS - Tells whether emulation of network conditions is supported.
- CLEAR_
ACCEPTED_ ENCODINGS_ OVERRIDE - Clears accepted encodings set by setAcceptedEncodings
- CLEAR_
BROWSER_ CACHE - Clears browser cache.
- CLEAR_
BROWSER_ COOKIES - Clears browser cookies.
- CONFIGURE_
DURABLE_ MESSAGES - Configures storing response bodies outside of renderer, so that these survive a cross-process navigation. If maxTotalBufferSize is not set, durable messages are disabled.
- DELETE_
COOKIES - Deletes browser cookies with matching name and url or domain/path/partitionKey pair.
- DELETE_
DEVICE_ BOUND_ SESSION - Deletes a device bound session.
- DISABLE
- Disables network tracking, prevents network events from being sent to the client.
- EMULATE_
NETWORK_ CONDITIONS - Activates emulation of network conditions. This command is deprecated in favor of the emulateNetworkConditionsByRule and overrideNetworkState commands, which can be used together to the same effect.
- EMULATE_
NETWORK_ CONDITIONS_ BY_ RULE - Activates emulation of network conditions for individual requests using
URL match patterns. Unlike the deprecated Network.emulateNetworkConditions
this method does not affect
navigatorstate. Use Network.overrideNetworkState to explicitly modifynavigatorbehavior. - ENABLE
- Enables network tracking, network events will now be delivered to the client.
- ENABLE_
DEVICE_ BOUND_ SESSIONS - Sets up tracking device bound sessions and fetching of initial set of sessions.
- ENABLE_
REPORTING_ API - Enables tracking for the Reporting API, events generated by the Reporting API will now be delivered to the client. Enabling triggers ‘reportingApiReportAdded’ for all existing reports.
- FETCH_
SCHEMEFUL_ SITE - Fetches the schemeful site for a specific origin.
- GET_
ALL_ COOKIES - Returns all browser cookies. Depending on the backend support, will return
detailed cookie information in the
cookiesfield. Deprecated. Use Storage.getCookies instead. - GET_
CERTIFICATE - Returns the DER-encoded certificate.
- GET_
COOKIES - Returns all browser cookies for the current URL. Depending on the backend
support, will return detailed cookie information in the
cookiesfield. - GET_
REQUEST_ POST_ DATA - Returns post data sent with the request. Returns an error when no data was sent with the request.
- GET_
RESPONSE_ BODY - Returns content served for the given request.
- GET_
SECURITY_ ISOLATION_ STATUS - Returns information about the COEP/COOP isolation status.
- LOAD_
NETWORK_ RESOURCE - Fetches the resource and returns the content.
- OVERRIDE_
NETWORK_ STATE - Override the state of navigator.onLine and navigator.connection.
- REPLAY_
XHR - This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password.
- SEARCH_
IN_ RESPONSE_ BODY - Searches for given string in response content.
- SET_
ACCEPTED_ ENCODINGS - Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.
- SET_
ATTACH_ DEBUG_ STACK - Specifies whether to attach a page script stack id in requests
- SET_
BLOCKED_ UR_ LS - Blocks URLs from loading.
- SET_
BYPASS_ SERVICE_ WORKER - Toggles ignoring of service worker for each request.
- SET_
CACHE_ DISABLED - Toggles ignoring cache for each request. If
true, cache will not be used. - SET_
COOKIE - Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
- SET_
COOKIES - Sets given cookies.
- SET_
COOKIE_ CONTROLS - Sets Controls for third-party cookie access Page reload is required before the new cookie behavior will be observed
- SET_
EXTRA_ HTTP_ HEADERS - Specifies whether to always send extra HTTP headers with the requests from this page.
- SET_
USER_ AGENT_ OVERRIDE - Allows overriding user agent with the given string.
- STREAM_
RESOURCE_ CONTENT - Enables streaming of the response for the given requestId. If enabled, the dataReceived event contains the data that was received during streaming.