#include <CustomFileDownloader.h>
Public Member Functions | |
FHttpDownloader (const FString &InVerb, const FString &InUrl, const FString &InFilename, FDownloadComplete &Delegate) | |
void | RequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, bool bSucceeded) |
Delegate called when the request completes. More... | |
void | Run (void) |
Private Attributes | |
FDownloadComplete | DelegateToCall |
FString | Filename |
FString | Url |
FString | Verb |
Definition at line 36 of file CustomFileDownloader.h.
FHttpDownloader::FHttpDownloader | ( | const FString & | InVerb, |
const FString & | InUrl, | ||
const FString & | InFilename, | ||
FDownloadComplete & | Delegate | ||
) |
Verb | - verb to use for request (GET,POST,DELETE,etc) |
Url | - url address to connect to |
Definition at line 63 of file CustomFileDownloader.cpp.
void FHttpDownloader::RequestComplete | ( | FHttpRequestPtr | HttpRequest, |
FHttpResponsePtr | HttpResponse, | ||
bool | bSucceeded | ||
) |
Delegate called when the request completes.
HttpRequest | - object that started/processed the request |
HttpResponse | - optional response object if request completed |
bSucceeded | - true if Url connection was made and response was received |
Definition at line 78 of file CustomFileDownloader.cpp.
References DelegateToCall, Filename, and carla::client::detail::Get().
Referenced by Run().
void FHttpDownloader::Run | ( | void | ) |
Definition at line 68 of file CustomFileDownloader.cpp.
References carla::client::detail::Get(), RequestComplete(), Url, and Verb.
Referenced by UCustomFileDownloader::StartDownload().
|
private |
Definition at line 62 of file CustomFileDownloader.h.
Referenced by RequestComplete().
|
private |
Definition at line 61 of file CustomFileDownloader.h.
Referenced by RequestComplete().
|
private |
Definition at line 60 of file CustomFileDownloader.h.
Referenced by Run().
|
private |
Definition at line 59 of file CustomFileDownloader.h.
Referenced by Run().