FHttpModule

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

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

HTTP

Header

/Engine/Source/Runtime/Online/HTTP/Public/HttpModule.h

Include

#include "HttpModule.h"

Syntax

class FHttpModule :
    public IModuleInterface,
    public FSelfRegisteringExec

Remarks

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

Functions

Name Description

Public function

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

Public function Virtual

TSharedRef< ...

 

CreateRequest()

Instantiates a new Http request for the current platform

Public function Static

FHttpModule ...

 

Get()

Singleton-like access to this module's interface.

Public function Const

const TArray...

 

GetAllowedDomains()

Public function Const

const TMap< ...

 

GetDefaultHeaders()

Get the default headers that are appended to every request

Public function Const

float

 

GetHttpConnectionTimeout()

Public function Const

float

 

GetHttpDelayTime()

Public function

FHttpManager...

 

GetHttpManager()

Only meant to be used by Http request/response implementations

Public function Const

int32

 

GetHttpMaxConnectionsPerServer()

Public function Const

float

 

GetHttpReceiveTimeout()

Public function Const

float

 

GetHttpSendTimeout()

Public function Const

float

 

GetHttpThreadActiveFrameTimeInSeconds()

Public function Const

float

 

GetHttpThreadActiveMinimumSleepTimeInSeconds()

Public function Const

float

 

GetHttpThreadIdleFrameTimeInSeconds()

Public function Const

float

 

GetHttpThreadIdleMinimumSleepTimeInSeconds()

Public function Const

float

 

GetHttpTimeout()

Public function Const

int32

 

GetMaxReadBufferSize()

Public function Const

const FStrin...

 

GetProxyAddress()

Public function

bool

 

HandleHTTPCommand

(
    const TCHAR* Cmd,
    FOutputDevice& Ar
)

Exec command handlers

Public function Const

bool

 

IsHttpEnabled()

Public function Const

bool

 

IsNullHttpEnabled()

Public function

void

 

SetHttpDelayTime

(
    float InHttpDelayTime
)

Set the min delay time for each http request

Public function

void

 

SetHttpThreadActiveFrameTimeInSeconds

(
    float InHttpThreadActiveFrameTimeIn...
)

Set the target tick rate of an active http thread

Public function

void

 

SetHttpThreadActiveMinimumSleepTimeInSeconds

(
    float InHttpThreadActiveMinimumSlee...
)

Set the minimum sleep time of an active http thread

Public function

void

 

SetHttpThreadIdleFrameTimeInSeconds

(
    float InHttpThreadIdleFrameTimeInSe...
)

Set the target tick rate of an idle http thread

Public function

void

 

SetHttpThreadIdleMinimumSleepTimeInSeconds

(
    float InHttpThreadIdleMinimumSleepT...
)

Set the minimum sleep time when idle, waiting for requests

Public function

void

 

SetHttpTimeout

(
    float TimeOutInSec
)

Sets timeout in seconds for the entire http request to complete

Public function

void

 

SetMaxReadBufferSize

(
    int32 SizeInBytes
)

Sets timeout in seconds for the entire http request to complete

Public function

void

 

SetProxyAddress

(
    const FString& InProxyAddress
)

Setter for the proxy address.

Public function Const

bool

 

SupportsDynamicProxy()

Method to check dynamic proxy setting support.

Public function

void

 

ToggleNullHttp

(
    bool bEnabled
)

Toggle null http implementation

Public function

void

 

UpdateConfigs()

Update all config-based values

Overridden from FExec

Name Description

Public function Virtual

bool

 

Exec

(
    UWorld* InWorld,
    const TCHAR* Cmd,
    FOutputDevice& Ar
)

Handle exec commands starting with "HTTP"

Constants

Name

Description

Singleton

Singleton for the module while loaded and available

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss