Property ReceiveHeadersHandler
- Namespace
- DotNetBrowser.Net
- Assembly
- DotNetBrowser.dll
ReceiveHeadersHandler
Gets or sets a handler that is used each time that an HTTP(S) response header is received. Due to redirects and authentication requests this can happen multiple times per request. This event is intended to allow adding, modifying, and deleting HTTP response headers, such as incoming "Set-Cookie" headers.
IHandler<ReceiveHeadersParameters, ReceiveHeadersResponse> ReceiveHeadersHandler { get; set; }
Property Value
Remarks
Use the OverrideHeaders(IEnumerable<HttpHeader>) method to override headers.
Use the Continue() method to continue without modifications.
If exception occurs inside the handler, the default behavior will be applied - the Continue() method will be used.
Exceptions
- ObjectDisposedException
The INetwork object has already been disposed.