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.0.0
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 propertyInterceptRequestHandler
Gets or sets a handler that is used when a URL request is about to be sent out.
Public propertyIsDisposed
Indicates if the object is already disposed.
(Inherited from IAutoDisposable.)
Public propertyLoadResourceHandler
Gets or sets a handler that is used to determine whether a resource (HTML, image, JavaScript, CSS file, etc.) should be downloaded from a web server.
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 propertySendHeadersHandler
Gets or sets a handler that is used when request is about to occur and the initial headers have been prepared. It allows adding, modifying, and deleting HTTP request headers.
Public propertySendProxyHeadersHandler
Gets or sets a handler that is used when request is about to occur and the initial headers have been prepared. after This handler is similar to SendHeadersHandler but used only if the proxy connection is used. Provides information about proxy connection, and also allows adding, modifying, and deleting HTTP request 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 eventBytesReceived
Occurs when the amount of bytes has been received over the network, such as when receiving request headers or reading raw response bytes. This includes localhost requests.
Public eventBytesSent
Occurs when the amount of bytes has been sent over the network, such as when sending request headers or uploading request body bytes.This includes localhost requests.Currently, this is only implemented for HTTP transactions, and the amount of bytes does not include TLS overhead or TCP retransmits.
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.
Public eventTransactionStarted
Occurs when the transaction has been started.
Top
See Also