engine
 
载入中...
搜索中...
未找到
类 | Public 成员函数 | 所有成员列表
IWebBrowserSchemeHandler类 参考abstract

This is the interface that needs to be implemented to handle a request made via a custom scheme. 更多...

#include <IWebBrowserSchemeHandler.h>

类

class  IHeaders
 An interface for setting response headers emulating a http implementation. 更多...
 

Public 成员函数

virtual void Cancel ()=0
 Called if the request should be canceled.
 
virtual void GetResponseHeaders (IHeaders &OutHeaders)=0
 Retrieves the headers for this request. 更多...
 
virtual bool ProcessRequest (const FString &Verb, const FString &Url, const FSimpleDelegate &OnHeadersReady)=0
 Process an incoming request. 更多...
 
virtual bool ReadResponse (uint8 *OutBytes, int32 BytesToRead, int32 &BytesRead, const FSimpleDelegate &OnMoreDataReady)=0
 Retrieves the headers for this request. 更多...
 

详细描述

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.

成员函数说明

◆ GetResponseHeaders()

virtual void IWebBrowserSchemeHandler::GetResponseHeaders ( IHeaders &  OutHeaders)
pure virtual

Retrieves the headers for this request.

参数
OutHeadersThe 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.

参数
VerbThis is the verb used for the request (GET, PUT, POST, etc).
UrlThis is the full url for the request being made.
OnHeadersReadyYou 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.
返回
You should return true if the request has been accepted and will be processed, otherwise false to cancel this request.

◆ ReadResponse()

virtual bool IWebBrowserSchemeHandler::ReadResponse ( uint8 *  OutBytes,
int32  BytesToRead,
int32 &  BytesRead,
const FSimpleDelegate &  OnMoreDataReady 
)
pure virtual

Retrieves the headers for this request.

参数
OutBytesYou should copy up to BytesToRead of data to this ptr.
BytesToReadThe maximum number of bytes that can be copied to OutBytes.
BytesReadYou 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.
OnMoreDataReadyYou should execute this delegate when more data is available to read.
返回
You should return true if more data needs to be read, otherwise false if this is the end of the response data.

该类的文档由以下文件生成: