Class V143Network
Class providing functionality for manipulating network calls using version 143 of the DevTools Protocol
public class V143Network : Network
- Inheritance
-
V143Network
- Inherited Members
Constructors
V143Network(NetworkAdapter, FetchAdapter)
Initializes a new instance of the V143Network class.
public V143Network(NetworkAdapter network, FetchAdapter fetch)
Parameters
networkNetworkAdapterThe adapter for the Network domain.
fetchFetchAdapterThe adapter for the Fetch domain.
Exceptions
- ArgumentNullException
If
networkorfetchare null.
Methods
AddResponseBody(HttpResponseData)
Asynchronously adds the response body to the provided HttpResponseData object.
public override Task AddResponseBody(HttpResponseData responseData)
Parameters
responseDataHttpResponseDataThe HttpResponseData object to which to add the response body.
Returns
- Task
A task that represents the asynchronous operation.
Exceptions
- ArgumentNullException
If
responseDatais null.
CancelAuth(string)
Asynchronously cancels authorization of an intercepted network request.
public override Task CancelAuth(string requestId)
Parameters
requestIdstringThe ID of the network request for which to cancel authentication.
Returns
- Task
A task that represents the asynchronous operation.
ContinueRequest(HttpRequestData)
Asynchronously continues an intercepted network request.
public override Task ContinueRequest(HttpRequestData requestData)
Parameters
requestDataHttpRequestDataThe HttpRequestData of the request.
Returns
- Task
A task that represents the asynchronous operation.
Exceptions
- ArgumentNullException
If
requestDatais null.
ContinueRequestWithResponse(HttpRequestData, HttpResponseData)
Asynchronously continues an intercepted network request.
public override Task ContinueRequestWithResponse(HttpRequestData requestData, HttpResponseData responseData)
Parameters
requestDataHttpRequestDataThe HttpRequestData of the request.
responseDataHttpResponseDataThe HttpResponseData with which to respond to the request
Returns
- Task
A task that represents the asynchronous operation.
Exceptions
- ArgumentNullException
If
requestDataorresponseDataare null.
ContinueRequestWithoutModification(HttpRequestData)
Asynchronously continues an intercepted network call without modification.
public override Task ContinueRequestWithoutModification(HttpRequestData requestData)
Parameters
requestDataHttpRequestDataThe HttpRequestData of the network call.
Returns
- Task
A task that represents the asynchronous operation.
Exceptions
- ArgumentNullException
If
requestDatais null.
ContinueResponseWithoutModification(HttpResponseData)
Asynchronously continues an intercepted network response without modification.
public override Task ContinueResponseWithoutModification(HttpResponseData responseData)
Parameters
responseDataHttpResponseDataThe HttpResponseData of the network response.
Returns
- Task
A task that represents the asynchronous operation.
Exceptions
- ArgumentNullException
If
responseDatais null.
ContinueWithAuth(string, string?, string?)
Asynchronously continues an intercepted network call using authentication.
public override Task ContinueWithAuth(string requestId, string? userName, string? password)
Parameters
requestIdstringThe ID of the network request for which to continue with authentication.
userNamestringThe user name with which to authenticate.
passwordstringThe password with which to authenticate.
Returns
- Task
A task that represents the asynchronous operation.
DisableFetch()
Asynchronously disables the fetch domain.
public override Task DisableFetch()
Returns
- Task
A task that represents the asynchronous operation.
DisableNetwork()
Asynchronously disables the Network domain..
public override Task DisableNetwork()
Returns
- Task
A task that represents the asynchronous operation.
DisableNetworkCaching()
Asynchronously disables network caching.
public override Task DisableNetworkCaching()
Returns
- Task
A task that represents the asynchronous operation.
EnableFetchForAllPatterns()
Asynchronously enables the fetch domain for all URL patterns.
public override Task EnableFetchForAllPatterns()
Returns
- Task
A task that represents the asynchronous operation.
EnableNetwork()
Asynchronously enables the Network domain..
public override Task EnableNetwork()
Returns
- Task
A task that represents the asynchronous operation.
EnableNetworkCaching()
Asynchronously enables network caching.
public override Task EnableNetworkCaching()
Returns
- Task
A task that represents the asynchronous operation.
SetUserAgentOverride(UserAgent)
Asynchronously sets the override of the user agent settings.
public override Task SetUserAgentOverride(UserAgent userAgent)
Parameters
Returns
- Task
A task that represents the asynchronous operation.
Exceptions
- ArgumentNullException
If
userAgentis null.