Navigation
API > API/Runtime > API/Runtime/HTTP > API/Runtime/HTTP/Interfaces
Inheritance Hierarchy
- IHttpBase
- TSharedFromThis
- IHttpRequest
- FHttpRequestImpl
- FHttpRequestAdapterBase
- FRequest
- FHttpRequestCommon
References
| Module | HTTP |
| Header | /Engine/Source/Runtime/Online/HTTP/Public/Interfaces/IHttpRequest.h |
| Include | #include "Interfaces/IHttpRequest.h" |
Syntax
class IHttpRequest :
public IHttpBase ,
public TSharedFromThis< IHttpRequest, ESPMode::ThreadSafe >
Remarks
Interface for Http requests (created using FHttpFactory)
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor for overrides |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AppendToHeader
(
const FString& HeaderName, |
Appends to the value already set in the header. | |
| void | Called to cancel a request that is still being processed | ||
| 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. | |
| FHttpRequestHeaderReceivedDelegate & | Delegate called to signal the receipt of a header. See FHttpRequestHeaderReceivedDelegate | ||
| FHttpRequestCompleteDelegate & | Delegate called when the request is complete. See FHttpRequestCompleteDelegate | ||
| FHttpRequestProgressDelegate64 & | Delegate called to update the request/response progress. See FHttpRequestProgressDelegate64 | ||
| FHttpRequestWillRetryDelegate & | Delegate called when the request will be retried | ||
| FHttpRequestStatusCodeReceivedDelegate & | Delegate called to signal the receipt of a header. See FHttpRequestStatusCodeReceivedDelegate | ||
| bool | Called to begin processing 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. | |
| bool | SetContentFromStreamDelegate
(
FHttpRequestStreamDelegate StreamDelegate |
Sets the content of the request to stream directly from an delegate. | |
| 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. | |
| bool | SetResponseBodyReceiveStreamDelegate
(
FHttpRequestStreamDelegate StreamDelegate |
Sets the delegate to receive the response body. | |
| bool | SetResponseBodyReceiveStreamDelegateV2
(
FHttpRequestStreamDelegateV2 StreamDelegate |
Sets the delegate 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 |