INetworkInterceptRequestHandler Property |
Namespace: DotNetBrowser.Net
IHandler<InterceptRequestParameters, InterceptRequestResponse> InterceptRequestHandler { get; set; }
| Exception | Condition |
|---|---|
| ObjectDisposedException | The INetwork object has already been disposed. |
Use the Intercept(UrlRequestJob) method to intercept the request and override the response data using the returned UrlRequestJob. The job can be created by calling the CreateUrlRequestJob(UrlRequest, UrlRequestJobOptions) method.
Use the Proceed method if you do not need to intercept the request.
If an exception occurs inside the handler implementation, the default behavior will be applied - the Proceed method will be used.