Module |
|
Header |
/Engine/Source/Runtime/Online/HTTP/Public/Interfaces/IHttpRequest.h |
Include |
#include "Interfaces/IHttpRequest.h" |
class IHttpRequest :
public IHttpBase,
public TSharedFromThis< IHttpRequest, ESPMode::ThreadSafe >
Interface for Http requests (created using FHttpFactory)
Name | Description | |
---|---|---|
|
~IHttpRequest() |
Destructor for overrides |
Name | Description | ||
---|---|---|---|
|
AppendToHeader |
Appends to the value already set in the header. |
|
|
CancelRequest() |
Called to cancel a request that is still being processed |
|
|
ClearTimeout() |
Clears the optional timeout in seconds for this HTTP request, causing the default value from FHttpModule::GetTimeout() to be used. |
|
|
float |
GetElapsedTime() |
Gets the time that it took for the server to fully respond to the request. |
|
const FHttpR... |
GetResponse() |
Get the associated Response |
|
EHttpRequest... |
GetStatus() |
Get the current status of the request being processed |
|
TOptional< f... |
GetTimeout() |
Gets the optional timeout in seconds for this entire HTTP request to complete. |
|
GetVerb() |
Gets the verb (GET, PUT, POST) used by the request. |
|
|
FHttpRequest... |
OnHeaderReceived() |
Delegate called to signal the receipt of a header. See FHttpRequestHeaderReceivedDelegate |
|
FHttpRequest... |
OnProcessRequestComplete() |
Delegate called when the request is complete. See FHttpRequestCompleteDelegate |
|
FHttpRequest... |
OnRequestProgress() |
Delegate called to update the request/response progress. See FHttpRequestProgressDelegate |
|
FHttpRequest... |
OnRequestWillRetry() |
Delegate called when the request will be retried |
|
ProcessRequest() |
Called to begin processing the request. |
|
|
SetContent |
Sets the content of the request (optional data). Usually only set for POST requests. |
|
|
SetContent |
Sets the content of the request (optional data). |
|
|
SetContentAsStreamedFile ( |
Sets the content of the request to stream from a file. |
|
|
SetContentAsString ( |
Sets the content of the request as a string encoded as UTF8. |
|
|
SetContentFromStream ( |
Sets the content of the request to stream directly from an archive. |
|
|
SetHeader |
Sets optional header info. |
|
|
SetTimeout ( |
Sets an optional timeout in seconds for this entire HTTP request to complete. |
|
|
SetURL ( |
Sets the URL for the request Eg. |
|
|
SetVerb ( |
Sets the verb used by the request. |
|
|
Tick ( |
Used to tick the request |