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

Module for Http request implementations Use FHttpFactory to create a new Http request 更多...

#include <HttpModule.h>

+ 类 FHttpModule 继承关系图:

Public 成员函数

void AddDefaultHeader (const FString &HeaderName, const FString &HeaderValue)
 Add a default header to be appended to future requests If a request already specifies this header, then the defaulted version will not be used 更多...
 
virtual TSharedRef< IHttpRequest, ESPMode::ThreadSafe > CreateRequest ()
 Instantiates a new Http request for the current platform 更多...
 
virtual bool Exec (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar) override
 Handle exec commands starting with "HTTP" 更多...
 
const TArray< FString > & GetAllowedDomains () const
 
const TMap< FString, FString > & GetDefaultHeaders () const
 Get the default headers that are appended to every request 更多...
 
float GetHttpConnectionTimeout () const
 
float GetHttpDelayTime () const
 
FHttpManager & GetHttpManager ()
 Only meant to be used by Http request/response implementations 更多...
 
int32 GetHttpMaxConnectionsPerServer () const
 
float GetHttpReceiveTimeout () const
 
float GetHttpSendTimeout () const
 
float GetHttpThreadActiveFrameTimeInSeconds () const
 
float GetHttpThreadActiveMinimumSleepTimeInSeconds () const
 
float GetHttpThreadIdleFrameTimeInSeconds () const
 
float GetHttpThreadIdleMinimumSleepTimeInSeconds () const
 
float GetHttpTimeout () const
 
int32 GetMaxReadBufferSize () const
 
const FString & GetProxyAddress () const
 
bool HandleHTTPCommand (const TCHAR *Cmd, FOutputDevice &Ar)
 Exec command handlers
 
bool IsHttpEnabled () const
 
bool IsNullHttpEnabled () const
 
void SetHttpDelayTime (float InHttpDelayTime)
 Set the min delay time for each http request
 
void SetHttpThreadActiveFrameTimeInSeconds (float InHttpThreadActiveFrameTimeInSeconds)
 Set the target tick rate of an active http thread
 
void SetHttpThreadActiveMinimumSleepTimeInSeconds (float InHttpThreadActiveMinimumSleepTimeInSeconds)
 Set the minimum sleep time of an active http thread
 
void SetHttpThreadIdleFrameTimeInSeconds (float InHttpThreadIdleFrameTimeInSeconds)
 Set the target tick rate of an idle http thread
 
void SetHttpThreadIdleMinimumSleepTimeInSeconds (float InHttpThreadIdleMinimumSleepTimeInSeconds)
 Set the minimum sleep time when idle, waiting for requests
 
void SetHttpTimeout (float TimeOutInSec)
 Sets timeout in seconds for the entire http request to complete
 
void SetMaxReadBufferSize (int32 SizeInBytes)
 Sets the maximum size for the read buffer 更多...
 
void SetProxyAddress (const FString &InProxyAddress)
 Setter for the proxy address. 更多...
 
bool SupportsDynamicProxy () const
 Method to check dynamic proxy setting support. 更多...
 
void ToggleNullHttp (bool bEnabled)
 toggle null http implementation
 
HTTP_API void UpdateConfigs ()
 Update all config-based values
 
- Public 成员函数 继承自 IModuleInterface
virtual bool IsGameModule () const
 Returns true if this module hosts gameplay code 更多...
 
virtual void PostLoadCallback ()
 Called after the module has been reloaded
 
virtual void PreUnloadCallback ()
 Called before the module has been unloaded
 
virtual void ShutdownModule ()
 Called before the module is unloaded, right before the module object is destroyed. 更多...
 
virtual void StartupModule ()
 Called right after the module DLL has been loaded and the module object has been created Load dependent modules here, and they will be guaranteed to be available during ShutdownModule. 更多...
 
virtual bool SupportsAutomaticShutdown ()
 Override this to set whether your module would like cleanup on application shutdown 更多...
 
virtual bool SupportsDynamicReloading ()
 Override this to set whether your module is allowed to be unloaded on the fly 更多...
 
virtual ~IModuleInterface ()
 Note: Even though this is an interface class we need a virtual destructor here because modules are deleted via a pointer to this interface

 
- Public 成员函数 继承自 FSelfRegisteringExec
 FSelfRegisteringExec ()
 Constructor, registering this instance.
 
virtual ~FSelfRegisteringExec ()
 Destructor, unregistering this instance.
 

静态 Public 成员函数

static HTTP_API FHttpModule & Get ()
 Singleton-like access to this module's interface. 更多...
 
- 静态 Public 成员函数 继承自 FSelfRegisteringExec
static bool StaticExec (UWorld *Inworld, const TCHAR *Cmd, FOutputDevice &Ar)
 Routes a command to the self-registered execs.
 

详细描述

Module for Http request implementations Use FHttpFactory to create a new Http request

成员函数说明

◆ AddDefaultHeader()

void FHttpModule::AddDefaultHeader ( const FString &  HeaderName,
const FString &  HeaderValue 
)
inline

Add a default header to be appended to future requests If a request already specifies this header, then the defaulted version will not be used

参数
HeaderName- Name of the header (e.g., "Content-Type")
HeaderValue- Value of the header

◆ CreateRequest()

virtual TSharedRef< IHttpRequest, ESPMode::ThreadSafe > FHttpModule::CreateRequest ( )
virtual

Instantiates a new Http request for the current platform

返回
new Http request instance

◆ Exec()

virtual bool FHttpModule::Exec ( UWorld *  InWorld,
const TCHAR *  Cmd,
FOutputDevice &  Ar 
)
overridevirtual

Handle exec commands starting with "HTTP"

参数
InWorldthe world context
Cmdthe exec command being executed
Arthe archive to log results to
返回
true if the handler consumed the input, false to continue searching handlers

◆ Get()

static HTTP_API FHttpModule & FHttpModule::Get ( )
static

Singleton-like access to this module's interface.

This is just for convenience! Beware of calling this during the shutdown phase, though. Your module might have been unloaded already.

返回
Returns singleton instance, loading the module on demand if needed

◆ GetAllowedDomains()

const TArray< FString > & FHttpModule::GetAllowedDomains ( ) const
inline
返回
the list of allowed domains for applying whitelist

◆ GetDefaultHeaders()

const TMap< FString, FString > & FHttpModule::GetDefaultHeaders ( ) const
inline

Get the default headers that are appended to every request

返回
the default headers

◆ GetHttpConnectionTimeout()

float FHttpModule::GetHttpConnectionTimeout ( ) const
inline
返回
timeout in seconds to establish the connection

◆ GetHttpDelayTime()

float FHttpModule::GetHttpDelayTime ( ) const
inline
返回
min delay time for each http request

◆ GetHttpManager()

FHttpManager & FHttpModule::GetHttpManager ( )
inline

Only meant to be used by Http request/response implementations

返回
Http request manager used by the module

◆ GetHttpMaxConnectionsPerServer()

int32 FHttpModule::GetHttpMaxConnectionsPerServer ( ) const
inline
返回
max number of simultaneous connections to a specific server

◆ GetHttpReceiveTimeout()

float FHttpModule::GetHttpReceiveTimeout ( ) const
inline
返回
timeout in seconds to receive a response on the connection

◆ GetHttpSendTimeout()

float FHttpModule::GetHttpSendTimeout ( ) const
inline
返回
timeout in seconds to send a request on the connection

◆ GetHttpThreadActiveFrameTimeInSeconds()

float FHttpModule::GetHttpThreadActiveFrameTimeInSeconds ( ) const
inline
返回
Target tick rate of an active http thread

◆ GetHttpThreadActiveMinimumSleepTimeInSeconds()

float FHttpModule::GetHttpThreadActiveMinimumSleepTimeInSeconds ( ) const
inline
返回
Minimum sleep time of an active http thread

◆ GetHttpThreadIdleFrameTimeInSeconds()

float FHttpModule::GetHttpThreadIdleFrameTimeInSeconds ( ) const
inline
返回
Target tick rate of an idle http thread

◆ GetHttpThreadIdleMinimumSleepTimeInSeconds()

float FHttpModule::GetHttpThreadIdleMinimumSleepTimeInSeconds ( ) const
inline
返回
Minimum sleep time when idle, waiting for requests

◆ GetHttpTimeout()

float FHttpModule::GetHttpTimeout ( ) const
inline
返回
timeout in seconds for the entire http request to complete

◆ GetMaxReadBufferSize()

int32 FHttpModule::GetMaxReadBufferSize ( ) const
inline
返回
max read buffer size for http requests

◆ GetProxyAddress()

const FString & FHttpModule::GetProxyAddress ( ) const
inline
返回
The current proxy address.

◆ IsHttpEnabled()

bool FHttpModule::IsHttpEnabled ( ) const
inline
返回
true if http requests are enabled

◆ IsNullHttpEnabled()

bool FHttpModule::IsNullHttpEnabled ( ) const
inline
返回
true if null http is being used

◆ SetMaxReadBufferSize()

void FHttpModule::SetMaxReadBufferSize ( int32  SizeInBytes)
inline

Sets the maximum size for the read buffer

参数
SizeInBytesThe maximum number of bytes to use for the read buffer

◆ SetProxyAddress()

void FHttpModule::SetProxyAddress ( const FString &  InProxyAddress)
inline

Setter for the proxy address.

参数
InProxyAddress- New proxy address to use.

◆ SupportsDynamicProxy()

bool FHttpModule::SupportsDynamicProxy ( ) const
inline

Method to check dynamic proxy setting support.

返回
Whether this http implementation supports dynamic proxy setting.

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