Click or drag to resize

INetwork Interface

Allows access and modifying to the network-level activities.

Namespace:  DotNetBrowser.Net
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.15.1
Syntax
C#
public interface INetwork : IAutoDisposable

The INetwork type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleAcceptLanguage
Gets or sets the Accept-Language request header value.
Public propertyAuthenticateHandler
Gets or sets a handler that is used when the website requests authentication.
Public propertyCanAccessFileHandler
Gets or sets a handler that is used when the Chromium engine is about to access the requested file. Can be used to disallow accessing the file.
Public propertyCanGetCookiesHandler
Gets or sets a handler that is used when Chromium engine decides whether cookies can be sent back to the web server.
Public propertyCanSetCookieHandler
Gets or sets a handler that is used when Chromium engine decides whether cookie can be saved for the URL or not.
Public propertyEngine
Gets the IEngine instance associated with this object.
Public propertyHttpAuthPreferences
Gets the HTTP authorization preferences.
Public propertyIsDisposed
Indicates if the object is already disposed.
(Inherited from IAutoDisposable.)
Public propertyProfile
Gets the IProfile instance associated with this object.
Public propertyReceiveHeadersHandler
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.
Public propertySendUploadDataHandler
Gets or sets a handler that is used when the upload data is about to send to the web server. Can be used to override the upload data before it is sent.
Public propertySendUrlRequestHandler
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.
Public propertyStartTransactionHandler
Gets or sets a handler that is used when the request is about to start the transaction process. It allows adding, modifying, and deleting HTTP request headers.
Public propertyUserAgent
Gets the default user-agent string.
Public propertyVerifyCertificateHandler
Gets or sets a handler that is used to verify the SSL certificate provided by the web server.
Top
Methods
  NameDescription
Public methodCreateUrlRequestJob
Creates a new UrlRequestJob instance with the given options.

The URL request job is used to provide the response data for the intercepted URL request.

Top
Events
  NameDescription
Public eventConnectionTypeChanged
Occurs when the network connection type has been changed.
Public eventDisposed
Occurs when the object has been disposed.
(Inherited from IAutoDisposable.)
Public eventPacScriptErrorOccurred
Occurs when the error has been occured in the PAC script.
Public eventRedirectResponseCodeReceived
Occurs when the redirect has been occured.
Public eventRequestCompleted
Occurs when the request has been completed.
Public eventRequestDestroyed
Occurs when the request has been destroyed.
Public eventResponseBytesReceived
Occurs when a part of HTTP response body has been received over the network.
Public eventResponseStarted
Occurs when the response has been started.
Top
See Also