Chrome Remote Interface v0.4.1 ChromeRemoteInterface.RPC.Network View Source
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.
Link to this section Summary
Functions
Clears browser cache.
Clears browser cookies.
Deletes browser cookies with matching name and url or domain/path pair.
Disables network tracking, prevents network events from being sent to the client.
Activates emulation of network conditions.
Enables network tracking, network events will now be delivered to the client.
Returns all browser cookies. Depending on the backend support, will return detailed cookie
information in the cookies
field.
Returns all browser cookies for the current URL. Depending on the backend support, will return
detailed cookie information in the cookies
field.
Returns post data sent with the request. Returns an error when no data was sent with the request.
Returns content served for the given request.
Toggles ignoring cache for each request. If true
, cache will not be used.
Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
Sets given cookies.
Specifies whether to always send extra HTTP headers with the requests from this page.
Allows overriding user agent with the given string.
Link to this section Functions
clearBrowserCache(page_pid) View Source
Clears browser cache.
Parameters:
clearBrowserCache(page_pid, parameters) View Source
clearBrowserCache(page_pid, parameters, opts) View Source
clearBrowserCookies(page_pid) View Source
Clears browser cookies.
Parameters:
clearBrowserCookies(page_pid, parameters) View Source
clearBrowserCookies(page_pid, parameters, opts) View Source
deleteCookies(page_pid) View Source
Deletes browser cookies with matching name and url or domain/path pair.
Parameters:
name -
deleteCookies(page_pid, parameters) View Source
deleteCookies(page_pid, parameters, opts) View Source
disable(page_pid) View Source
Disables network tracking, prevents network events from being sent to the client.
Parameters:
disable(page_pid, parameters) View Source
disable(page_pid, parameters, opts) View Source
emulateNetworkConditions(page_pid) View Source
Activates emulation of network conditions.
Parameters:
offline -
emulateNetworkConditions(page_pid, parameters) View Source
emulateNetworkConditions(page_pid, parameters, opts) View Source
enable(page_pid) View Source
Enables network tracking, network events will now be delivered to the client.
Parameters:
maxTotalBufferSize -
enable(page_pid, parameters) View Source
enable(page_pid, parameters, opts) View Source
experimental?() View Source
getAllCookies(page_pid) View Source
Returns all browser cookies. Depending on the backend support, will return detailed cookie
information in the cookies
field.
Parameters:
getAllCookies(page_pid, parameters) View Source
getAllCookies(page_pid, parameters, opts) View Source
getCookies(page_pid) View Source
Returns all browser cookies for the current URL. Depending on the backend support, will return
detailed cookie information in the cookies
field.
Parameters:
urls -
getCookies(page_pid, parameters) View Source
getCookies(page_pid, parameters, opts) View Source
getRequestPostData(page_pid) View Source
Returns post data sent with the request. Returns an error when no data was sent with the request.
Parameters:
requestId -
getRequestPostData(page_pid, parameters) View Source
getRequestPostData(page_pid, parameters, opts) View Source
getResponseBody(page_pid) View Source
Returns content served for the given request.
Parameters:
requestId -
getResponseBody(page_pid, parameters) View Source
getResponseBody(page_pid, parameters, opts) View Source
setCacheDisabled(page_pid) View Source
Toggles ignoring cache for each request. If true
, cache will not be used.
Parameters:
cacheDisabled -
setCacheDisabled(page_pid, parameters) View Source
setCacheDisabled(page_pid, parameters, opts) View Source
setCookie(page_pid) View Source
Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
Parameters:
name -
setCookie(page_pid, parameters) View Source
setCookie(page_pid, parameters, opts) View Source
setCookies(page_pid) View Source
Sets given cookies.
Parameters:
cookies -
setCookies(page_pid, parameters) View Source
setCookies(page_pid, parameters, opts) View Source
setExtraHTTPHeaders(page_pid) View Source
Specifies whether to always send extra HTTP headers with the requests from this page.
Parameters:
headers -
setExtraHTTPHeaders(page_pid, parameters) View Source
setExtraHTTPHeaders(page_pid, parameters, opts) View Source
setUserAgentOverride(page_pid) View Source
Allows overriding user agent with the given string.
Parameters:
userAgent -