Interface INetwork
- Namespace
- DotNetBrowser.Net
- Assembly
- DotNetBrowser.dll
Allows access and modifying to the network-level activities.
public interface INetwork : IAutoDisposable
- Inherited Members
Properties
- AcceptLanguage
Gets or sets the
Accept-Language
request header value.
- AuthenticateHandler
Gets or sets a handler that is used when the website requests authentication.
- CanAccessFileHandler
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.
- CanGetCookiesHandler
Gets or sets a handler that is used when Chromium engine decides whether cookies can be sent back to the web server.
- CanSetCookieHandler
Gets or sets a handler that is used when Chromium engine decides whether cookie can be saved for the URL or not.
- HttpAuthPreferences
Gets the HTTP authorization preferences.
- 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.
- SendUploadDataHandler
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.
- SendUrlRequestHandler
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.
- StartTransactionHandler
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.
- UserAgent
Gets the default user-agent string.
- VerifyCertificateHandler
Gets or sets a handler that is used to verify the SSL certificate provided by the web server.
Methods
- CreateUrlRequestJob(UrlRequest, UrlRequestJobOptions)
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.
Events
- ConnectionTypeChanged
Occurs when the network connection type has been changed.
- PacScriptErrorOccurred
Occurs when the error has been occured in the PAC script.
- RedirectResponseCodeReceived
Occurs when the redirect has been occured.
- RequestCompleted
Occurs when the request has been completed.
- RequestDestroyed
Occurs when the request has been destroyed.
- ResponseBytesReceived
Occurs when a part of HTTP response body has been received over the network.
- ResponseStarted
Occurs when the response has been started.