NetworkClient Class |
Namespace: CefSharp.DevTools.Network
The NetworkClient type exposes the following members.
Name | Description | |
---|---|---|
NetworkClient |
Network
|
Name | Description | |
---|---|---|
ClearAcceptedEncodingsOverrideAsync |
Clears accepted encodings set by setAcceptedEncodings
| |
ClearBrowserCacheAsync |
Clears browser cache.
| |
ClearBrowserCookiesAsync |
Clears browser cookies.
| |
DeleteCookiesAsync |
Deletes browser cookies with matching name and url or domain/path pair.
| |
DisableAsync |
Disables network tracking, prevents network events from being sent to the client.
| |
EmulateNetworkConditionsAsync |
Activates emulation of network conditions.
| |
EnableAsync |
Enables network tracking, network events will now be delivered to the client.
| |
EnableReportingApiAsync |
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.
| |
EnumToString(ContentEncoding) | (Inherited from DevToolsDomainBase.) | |
EnumToString(CSPViolationType) | (Inherited from DevToolsDomainBase.) | |
EnumToString(DisabledImageType) | (Inherited from DevToolsDomainBase.) | |
EnumToString(Enum) | (Inherited from DevToolsDomainBase.) | |
EnumToString(PermissionType) | (Inherited from DevToolsDomainBase.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetAllCookiesAsync |
Returns all browser cookies. Depending on the backend support, will return detailed cookie
information in the `cookies` field.
| |
GetCertificateAsync |
Returns the DER-encoded certificate.
| |
GetCookiesAsync |
Returns all browser cookies for the current URL. Depending on the backend support, will return
detailed cookie information in the `cookies` field.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetRequestPostDataAsync |
Returns post data sent with the request. Returns an error when no data was sent with the request.
| |
GetResponseBodyAsync |
Returns content served for the given request.
| |
GetResponseBodyForInterceptionAsync |
Returns content served for the given currently intercepted request.
| |
GetSecurityIsolationStatusAsync |
Returns information about the COEP/COOP isolation status.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
LoadNetworkResourceAsync(String, LoadNetworkResourceOptions, String) |
Fetches the resource and returns the content.
| |
LoadNetworkResourceAsync(String, String, LoadNetworkResourceOptions) |
Fetches the resource and returns the content.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ReplayXHRAsync |
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.
| |
SearchInResponseBodyAsync |
Searches for given string in response content.
| |
SetAcceptedEncodingsAsync |
Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.
| |
SetAttachDebugStackAsync |
Specifies whether to attach a page script stack id in requests
| |
SetBlockedURLsAsync |
Blocks URLs from loading.
| |
SetBypassServiceWorkerAsync |
Toggles ignoring of service worker for each request.
| |
SetCacheDisabledAsync |
Toggles ignoring cache for each request. If `true`, cache will not be used.
| |
SetCookieAsync |
Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
| |
SetCookiesAsync |
Sets given cookies.
| |
SetExtraHTTPHeadersAsync |
Specifies whether to always send extra HTTP headers with the requests from this page.
| |
SetUserAgentOverrideAsync |
Allows overriding user agent with the given string.
| |
TakeResponseBodyForInterceptionAsStreamAsync |
Returns a handle to the stream representing the response body. Note that after this command,
the intercepted request can't be continued as is -- you either need to cancel it or to provide
the response body. The stream only supports sequential read, IO.read will fail if the position
is specified.
| |
ToBase64String | (Inherited from DevToolsDomainBase.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
DataReceived |
Fired when data chunk was received over the network.
| |
EventSourceMessageReceived |
Fired when EventSource message is received.
| |
LoadingFailed |
Fired when HTTP request has failed to load.
| |
LoadingFinished |
Fired when HTTP request has finished loading.
| |
ReportingApiEndpointsChangedForOrigin |
ReportingApiEndpointsChangedForOrigin
| |
ReportingApiReportAdded |
Is sent whenever a new report is added.
And after 'enableReportingApi' for all existing reports.
| |
ReportingApiReportUpdated |
ReportingApiReportUpdated
| |
RequestServedFromCache |
Fired if request ended up loading from cache.
| |
RequestWillBeSent |
Fired when page is about to send HTTP request.
| |
RequestWillBeSentExtraInfo |
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.
| |
ResourceChangedPriority |
Fired when resource loading priority is changed
| |
ResponseReceived |
Fired when HTTP response is available.
| |
ResponseReceivedExtraInfo |
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.
| |
SignedExchangeReceived |
Fired when a signed exchange was received over the network
| |
SubresourceWebBundleInnerResponseError |
Fired when request for resources within a .wbn file failed.
| |
SubresourceWebBundleInnerResponseParsed |
Fired when handling requests for resources within a .wbn file.
Note: this will only be fired for resources that are requested by the webpage.
| |
SubresourceWebBundleMetadataError |
Fired once when parsing the .wbn file has failed.
| |
SubresourceWebBundleMetadataReceived |
Fired once when parsing the .wbn file has succeeded.
The event contains the information about the web bundle contents.
| |
TrustTokenOperationDone |
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.
| |
WebSocketClosed |
Fired when WebSocket is closed.
| |
WebSocketCreated |
Fired upon WebSocket creation.
| |
WebSocketFrameError |
Fired when WebSocket message error occurs.
| |
WebSocketFrameReceived |
Fired when WebSocket message is received.
| |
WebSocketFrameSent |
Fired when WebSocket message is sent.
| |
WebSocketHandshakeResponseReceived |
Fired when WebSocket handshake response becomes available.
| |
WebSocketWillSendHandshakeRequest |
Fired when WebSocket is about to initiate handshake.
| |
WebTransportClosed |
Fired when WebTransport is disposed.
| |
WebTransportConnectionEstablished |
Fired when WebTransport handshake is finished.
| |
WebTransportCreated |
Fired upon WebTransport creation.
|