Molybden API
|
A class that contains all network delegates. More...
#include <network_delegates.hpp>
Public Attributes | |
Delegate< BeforeSendUploadDataArgs, BeforeSendUploadDataAction > | onBeforeSendUploadData |
Invoked before the upload data is sent to the web server. | |
Delegate< CanSetCookieArgs, CanSetCookieAction > | onCanSetCookie |
Invoked to check if the given cookie can be set or not. | |
Delegate< CanGetCookiesArgs, CanGetCookiesAction > | onCanGetCookies |
Invoked to check if the engine can access the given cookie or not. | |
Delegate< CanAccessFileArgs, CanAccessFileAction > | onCanAccessFile |
Invoked to check if the engine can access a file on the local file system. | |
Delegate< ReceiveHeadersArgs, ReceiveHeadersAction > | onReceiveHeaders |
Invoked when the response headers have been received for a URL request. | |
Delegate< BeforeStartTransactionArgs, BeforeStartTransactionAction > | onBeforeStartTransaction |
Invoked before the network transaction starts. | |
Delegate< BeforeUrlRequestArgs, BeforeUrlRequestAction > | onBeforeUrlRequest |
Invoked when an HTTP request is about to occur. | |
Delegate< InterceptUrlRequestArgs, InterceptUrlRequestAction > | onInterceptUrlRequest |
Invoked when a URL request is about to be sent out. | |
A class that contains all network delegates.
Delegate<BeforeSendUploadDataArgs, BeforeSendUploadDataAction> molybden::NetworkDelegates::onBeforeSendUploadData |
Invoked before the upload data is sent to the web server.
It is the right place where you can override or set the required upload data.
Use the following approach to register a callback:
In order to unregister the callback, use the reset()
method:
Delegate<BeforeStartTransactionArgs, BeforeStartTransactionAction> molybden::NetworkDelegates::onBeforeStartTransaction |
Invoked before the network transaction starts.
It's the perfect place to override the HTTP headers before they are sent out.
Use the following approach to register a callback:
In order to unregister the callback, use the reset()
method:
Delegate<BeforeUrlRequestArgs, BeforeUrlRequestAction> molybden::NetworkDelegates::onBeforeUrlRequest |
Invoked when an HTTP request is about to occur.
Use the following approach to register a callback:
In order to unregister the callback, use the reset()
method:
Delegate<CanAccessFileArgs, CanAccessFileAction> molybden::NetworkDelegates::onCanAccessFile |
Invoked to check if the engine can access a file on the local file system.
Use the following approach to register a callback:
In order to unregister the callback, use the reset()
method:
Delegate<CanGetCookiesArgs, CanGetCookiesAction> molybden::NetworkDelegates::onCanGetCookies |
Invoked to check if the engine can access the given cookie or not.
Use the following approach to register a callback:
In order to unregister the callback, use the reset()
method:
Delegate<CanSetCookieArgs, CanSetCookieAction> molybden::NetworkDelegates::onCanSetCookie |
Invoked to check if the given cookie can be set or not.
Use the following approach to register a callback:
In order to unregister the callback, use the reset()
method:
Delegate<InterceptUrlRequestArgs, InterceptUrlRequestAction> molybden::NetworkDelegates::onInterceptUrlRequest |
Invoked when a URL request is about to be sent out.
Can be used to intercept a URL request and send a URL response as it was sent from a web server or let the engine decide how to process the URL request.
Use the following approach to register a callback:
In order to unregister the callback, use the reset()
method:
Delegate<ReceiveHeadersArgs, ReceiveHeadersAction> molybden::NetworkDelegates::onReceiveHeaders |
Invoked when the response headers have been received for a URL request.
It can be used to add, modify, or remove the HTTP headers received over the network.
Use the following approach to register a callback:
In order to unregister the callback, use the reset()
method: