Class V132Network
Class providing functionality for manipulating network calls using version 132 of the DevTools Protocol
public class V132Network : Network
- Inheritance
-
V132Network
- Inherited Members
Constructors
V132Network(NetworkAdapter, FetchAdapter)
Initializes a new instance of the V132Network class.
public V132Network(NetworkAdapter network, FetchAdapter fetch)
Parameters
network
NetworkAdapterThe adapter for the Network domain.
fetch
FetchAdapterThe adapter for the Fetch domain.
Methods
AddResponseBody(HttpResponseData)
Asynchronously adds the response body to the provided HttpResponseData object.
public override Task AddResponseBody(HttpResponseData responseData)
Parameters
responseData
HttpResponseDataThe HttpResponseData object to which to add the response body.
Returns
- Task
A task that represents the asynchronous operation.
CancelAuth(string)
Asynchronously cancels authorization of an intercepted network request.
public override Task CancelAuth(string requestId)
Parameters
requestId
stringThe 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
requestData
HttpRequestDataThe HttpRequestData of the request.
Returns
- Task
A task that represents the asynchronous operation.
ContinueRequestWithResponse(HttpRequestData, HttpResponseData)
Asynchronously continues an intercepted network request.
public override Task ContinueRequestWithResponse(HttpRequestData requestData, HttpResponseData responseData)
Parameters
requestData
HttpRequestDataThe HttpRequestData of the request.
responseData
HttpResponseDataThe HttpResponseData with which to respond to the request
Returns
- Task
A task that represents the asynchronous operation.
ContinueRequestWithoutModification(HttpRequestData)
Asynchronously contines an intercepted network call without modification.
public override Task ContinueRequestWithoutModification(HttpRequestData requestData)
Parameters
requestData
HttpRequestDataThe HttpRequestData of the network call.
Returns
- Task
A task that represents the asynchronous operation.
ContinueResponseWithoutModification(HttpResponseData)
Asynchronously continues an intercepted network response without modification.
public override Task ContinueResponseWithoutModification(HttpResponseData responseData)
Parameters
responseData
HttpResponseDataThe HttpResponseData of the network response.
Returns
- Task
A task that represents the asynchronous operation.
ContinueWithAuth(string, string, string)
Asynchronously continues an intercepted network call using authentication.
public override Task ContinueWithAuth(string requestId, string userName, string password)
Parameters
requestId
stringThe ID of the network request for which to continue with authentication.
userName
stringThe user name with which to authenticate.
password
stringThe password with which to authenticate.
Returns
- Task
A task that represents the asynchronous operation.
DisableFetch()
Asynchronously diables 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.