Navigation
API > API/Runtime > API/Runtime/HTTP
Inheritance Hierarchy
- IHttpBase
- TSharedFromThis
- IHttpRequest
- FHttpRequestImpl
- FHttpRequestAdapterBase
- FRequest
References
| Module | HTTP |
| Header | /Engine/Source/Runtime/Online/HTTP/Public/HttpRequestAdapter.h |
| Include | #include "HttpRequestAdapter.h" |
Syntax
class FHttpRequestAdapterBase : public FHttpRequestImpl
Remarks
Adapter class for IHttpRequest abstract interface does not fully expose the wrapped interface in the base. This allows client defined marshalling of the requests when end point permissions are at issue.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedRef< IHttpRequest > | HttpRequest |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FHttpRequestAdapterBase
(
const TSharedRef< IHttpRequest >& InHttpRequest |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Overridden from IHttpRequest
| Type | Name | Description | |
|---|---|---|---|
| void | AppendToHeader
(
const FString& HeaderName, |
Appends to the value already set in the header. | |
| void | ClearTimeout () |
Clears the optional timeout in seconds for this HTTP request, causing the default value from FHttpModule::GetTimeout() to be used. | |
| EHttpRequestDelegateThreadPolicy | Get thread policy about which thread to complete this request | ||
| float | Gets the time that it took for the server to fully respond to the request. | ||
| FString | Get the current value for the given option | ||
| const FHttpResponsePtr | GetResponse () |
Get the associated Response | |
| TOptional< float > | GetTimeout () |
Gets the optional timeout in seconds for this entire HTTP request to complete. | |
| FString | GetVerb () |
Gets the verb (GET, PUT, POST) used by the request. | |
| void | Blocking call to wait the request until it's completed | ||
| void | Reset the elapsed timeout duration and flag, after the request completed and need to be reused | ||
| void | SetActivityTimeout
(
float InTimeoutSecs |
Sets an optional activity timeout in seconds for this HTTP request. | |
| void | SetContent
(
const TArray< uint8 >& ContentPayload |
Sets the content of the request (optional data). Usually only set for POST requests. | |
| void | SetContent
(
TArray< uint8 >&& ContentPayload |
Sets the content of the request (optional data). | |
| bool | SetContentAsStreamedFile
(
const FString& Filename |
Sets the content of the request to stream from a file. | |
| void | SetContentAsString
(
const FString& ContentString |
Sets the content of the request as a string encoded as UTF8. | |
| bool | SetContentFromStream
(
TSharedRef< FArchive, ESPMode::ThreadSafe > Stream |
Sets the content of the request to stream directly from an archive. | |
| void | SetDelegateThreadPolicy
(
EHttpRequestDelegateThreadPolicy InThreadPolicy |
Set thread policy about which thread to trigger the delegates, set by FHttpManager::SetRequestCompletedDelegate, IHttpRequest::OnStatusCodeReceived, IHttpRequest::OnHeaderReceived, IHttpRequest::OnRequestProgress64 and IHttpRequest::OnProcessRequestComplete. | |
| void | Sets optional header info. | ||
| void | Sets the given option for this Request Must be set before calling ProcessRequest. | ||
| bool | SetResponseBodyReceiveStream
(
TSharedRef< FArchive > Stream |
Sets the stream to receive the response body. | |
| void | SetTimeout
(
float InTimeoutSecs |
Sets an optional timeout in seconds for this entire HTTP request to complete. | |
| void | Sets the URL for the request Eg. | ||
| void | Sets the verb used by the request. | ||
| void | Tick
(
float DeltaSeconds |
Used to tick the request |
Overridden from IHttpBase
| Type | Name | Description | |
|---|---|---|---|
| TArray< FString > | Return all headers in an array in "Name: Value" format. | ||
| const TArray< uint8 > & | GetContent () |
Get the content payload of the request or response. | |
| uint64 | Shortcut to get the Content-Length header value. | ||
| FString | Shortcut to get the Content-Type header value (if available) | ||
| const FString & | Get the effective URL in case of redirected. If not redirected, it's the same as GetURL | ||
| EHttpFailureReason | Get the reason of th failure if GetStatus returns Failed | ||
| FString | Gets the value of a header, or empty string if not found. | ||
| EHttpRequestStatus::Type | GetStatus () |
Get the current status of the request being processed | |
| FString | GetURL () |
Get the URL used to send the request. | |
| FString | GetURLParameter
(
const FString& ParameterName |
Gets an URL parameter. |