Click or drag to resize

INetworkSendUrlRequestHandler Property

Gets or sets a handler that is used when an HTTP request is about to occur. It can be used to override the requested URL and redirect the request to another location.

Namespace:  DotNetBrowser.Net
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.22.1
Syntax
C#
IHandler<SendUrlRequestParameters, SendUrlRequestResponse> SendUrlRequestHandler { get; set; }

Property Value

Type: IHandlerSendUrlRequestParameters, SendUrlRequestResponse
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe INetwork object has already been disposed.
Remarks

Use the Override(String) method to override the requested URL.

Use the Continue method to proceed without changes.

If exception occurs inside the handler, the default behavior will be applied - the Continue method will be used.

See Also