UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IHttpRequest.h File Reference
#include "CoreMinimal.h"
#include "Interfaces/IHttpBase.h"

Go to the source code of this file.

Classes

class  IHttpRequest
 

Namespaces

namespace  HttpRequestOptions
 

Typedefs

typedef TSharedPtr< IHttpRequest, ESPMode::ThreadSafeFHttpRequestPtr
 
typedef TSharedPtr< IHttpResponse, ESPMode::ThreadSafeFHttpResponsePtr
 
typedef TSharedRef< IHttpRequest, ESPMode::ThreadSafeFHttpRequestRef
 
typedef TSharedRef< IHttpResponse, ESPMode::ThreadSafeFHttpResponseRef
 
using FHttpRequestCompleteDelegate = TTSDelegate< void(FHttpRequestPtr, FHttpResponsePtr, bool)>
 
using FHttpRequestStatusCodeReceivedDelegate = TTSDelegate< void(FHttpRequestPtr, int32)>
 
using FHttpRequestHeaderReceivedDelegate = TTSDelegate< void(FHttpRequestPtr, const FString &, const FString &)>
 
using FHttpRequestProgressDelegate = TTSDelegate< void(FHttpRequestPtr, int32, int32)>
 
using FHttpRequestProgressDelegate64 = TTSDelegate< void(FHttpRequestPtr, uint64, uint64)>
 
using FHttpRequestWillRetryDelegate = TTSDelegate< void(FHttpRequestPtr, FHttpResponsePtr, float)>
 
using FHttpRequestStreamDelegate = TTSDelegate< bool(void *, int64)>
 
using FHttpRequestStreamDelegateV2 = TTSDelegate< void(void *, int64 &)>
 

Enumerations

enum class  EHttpRequestDelegateThreadPolicy : uint8 { CompleteOnGameThread = 0 , CompleteOnHttpThread }
 
enum class  EHttpRequestPriority : uint8 {
  Lowest = 0 , Low , Normal , High ,
  Highest
}
 
enum class  EHttpRequestMode : uint8 { ThreadedRequest , ImmediateRequest }
 

Functions

HTTP_API const TCHARLexToString (EHttpRequestMode Mode)
 

Typedef Documentation

◆ FHttpRequestCompleteDelegate

Delegate called when an Http request completes

Parameters
Requestoriginal Http request that started things
Responseresponse received from the server if a successful connection was established. Note that even if response is not null, it doesn't mean the request was processed successfully. Use Response->GetStatus(), Response->GetFailureReason() and Response->GetResponseCode() to decide how to handle it
bProcessedSuccessfullythis flag indicates whether or not the request was able to be processed successfully. It could be connect error, timeout error or platform http error. Note that when this flag is true doesn't mean the http request get 2xx success status code, it just means this request got response from http server and completed the processing

◆ FHttpRequestHeaderReceivedDelegate

using FHttpRequestHeaderReceivedDelegate = TTSDelegate<void(FHttpRequestPtr , const FString& , const FString& )>

Delegate called when an Http request receives a header

Parameters
Requestoriginal Http request that started things
HeaderNamethe name of the header
NewHeaderValuethe value of the header

◆ FHttpRequestProgressDelegate

Delegate called per tick to update an Http request upload or download size progress

Parameters
Requestoriginal Http request that started things
BytesSentthe number of bytes sent / uploaded in the request so far.
BytesReceivedthe number of bytes received / downloaded in the response so far.

◆ FHttpRequestProgressDelegate64

Delegate called per tick to update an Http request upload or download size progress

Parameters
Requestoriginal Http request that started things
BytesSentthe number of bytes sent / uploaded in the request so far.
BytesReceivedthe number of bytes received / downloaded in the response so far.

◆ FHttpRequestPtr

◆ FHttpRequestRef

◆ FHttpRequestStatusCodeReceivedDelegate

Delegate called when an Http request receives status code

Parameters
Requestoriginal Http request that started things
statuscode

◆ FHttpRequestStreamDelegate

Delegate called when an Http request will send/recv data through stream

Parameters
Ptr- The buffer ptr to read/write
Length- The length of buffer to read/write
Returns
true if succeed, false if failed to read/write data

◆ FHttpRequestStreamDelegateV2

Delegate called when an Http request will send/recv data through stream

Parameters
Ptr- The buffer ptr to read/write
InOutLength- The int64 reference length of buffer to read/write, if there is any error when serialize set it to 0

◆ FHttpRequestWillRetryDelegate

Delegate called when an Http request will be retried in the future

Parameters
Request- original Http request that started things
Response- response received from the server if a successful connection was established
SecondsToRetry- seconds in the future when the response will be retried

◆ FHttpResponsePtr

◆ FHttpResponseRef

Enumeration Type Documentation

◆ EHttpRequestDelegateThreadPolicy

Enumerates thread policy about which thread to complete the http request

Enumerator
CompleteOnGameThread 
CompleteOnHttpThread 

◆ EHttpRequestMode

enum class EHttpRequestMode : uint8
strong

Mode that can be specified through IHttpRequest::SetOption(HttpRequestOptions::RequestMode, LexToString(EHttpRequestMode::Value));

Enumerator
ThreadedRequest 

The request will be enqueued to the http manager thread system

ImmediateRequest 

The request will be immediately sent when the platform supports it

◆ EHttpRequestPriority

Enumerates priority to decide how the request will be queued when max concurrent limit reached The priority will be compared through value, so it's important to keep the order from low to high

Enumerator
Lowest 
Low 
Normal 
High 
Highest 

Function Documentation

◆ LexToString()

HTTP_API const TCHAR * LexToString ( EHttpRequestMode  Mode)