Click or drag to resize

INetworkInterceptRequestHandler Property

Gets or sets a handler that is used when a URL request is about to be sent out.

Namespace:  DotNetBrowser.Net
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.0.0
Syntax
C#
IHandler<InterceptRequestParameters, InterceptRequestResponse> InterceptRequestHandler { get; set; }

Property Value

Type: IHandlerInterceptRequestParameters, InterceptRequestResponse
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe INetwork object has already been disposed.
Remarks

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.

See Also