Class V142Network
Class providing functionality for manipulating network calls using version 142 of the DevTools Protocol
public class V142Network : Network- Inheritance
- 
      
      
      V142Network
- Inherited Members
Constructors
V142Network(NetworkAdapter, FetchAdapter)
Initializes a new instance of the V142Network class.
public V142Network(NetworkAdapter network, FetchAdapter fetch)Parameters
- networkNetworkAdapter
- The adapter for the Network domain. 
- fetchFetchAdapter
- The adapter for the Fetch domain. 
Exceptions
- ArgumentNullException
- If - networkor- fetchare null.
Methods
AddResponseBody(HttpResponseData)
Asynchronously adds the response body to the provided HttpResponseData object.
public override Task AddResponseBody(HttpResponseData responseData)Parameters
- responseDataHttpResponseData
- The 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
- requestIdstring
- The 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
- requestDataHttpRequestData
- The 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
- requestDataHttpRequestData
- The HttpRequestData of the request. 
- responseDataHttpResponseData
- The HttpResponseData with which to respond to the request 
Returns
- Task
- A task that represents the asynchronous operation. 
Exceptions
- ArgumentNullException
- If - requestDataor- responseDataare null.
ContinueRequestWithoutModification(HttpRequestData)
Asynchronously continues an intercepted network call without modification.
public override Task ContinueRequestWithoutModification(HttpRequestData requestData)Parameters
- requestDataHttpRequestData
- The 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
- responseDataHttpResponseData
- The 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
- requestIdstring
- The ID of the network request for which to continue with authentication. 
- userNamestring
- The user name with which to authenticate. 
- passwordstring
- The 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.