#include <IWebBrowserSchemeHandler.h>
This is the interface that needs to be implemented to handle a request made via a custom scheme. It will be created by implementing an IWebBrowserSchemeHandlerFactory, given to the web browser singleton.
◆ ~IWebBrowserSchemeHandler()
| virtual IWebBrowserSchemeHandler::~IWebBrowserSchemeHandler |
( |
| ) |
|
|
inlinevirtual |
◆ Cancel()
Called if the request should be canceled.
◆ GetResponseHeaders()
Retrieves the headers for this request.
- Parameters
-
| OutHeaders | The interface to use to set headers. |
◆ ProcessRequest()
| virtual bool IWebBrowserSchemeHandler::ProcessRequest |
( |
const FString & |
Verb, |
|
|
const FString & |
Url, |
|
|
const FSimpleDelegate & |
OnHeadersReady |
|
) |
| |
|
pure virtual |
Process an incoming request.
- Parameters
-
| Verb | This is the verb used for the request (GET, PUT, POST, etc). |
| Url | This is the full url for the request being made. |
| OnHeadersReady | You must execute this delegate once the response headers are ready to be retrieved with GetResponseHeaders. You may execute it during this call to state headers are available now. |
- Returns
- You should return true if the request has been accepted and will be processed, otherwise false to cancel this request.
◆ ReadResponse()
Retrieves the headers for this request.
- Parameters
-
| OutBytes | You should copy up to BytesToRead of data to this ptr. |
| BytesToRead | The maximum number of bytes that can be copied to OutBytes. |
| BytesRead | You should set this to the number of bytes that were copied. This can be set to zero, to indicate more data is not ready yet, and OnMoreDataReady must then be executed when there is. |
| OnMoreDataReady | You should execute this delegate when more data is available to read. |
- Returns
- You should return true if more data needs to be read, otherwise false if this is the end of the response data.
The documentation for this class was generated from the following file: