#include <httpfetch.h>
Public Member Functions | |
| bool | good () const |
| returns true if the request succeeded with a non-error status code | |
| HTTPFetchResult ()=default | |
| HTTPFetchResult (const HTTPFetchRequest &fetch_request) | |
Public Attributes | |
| bool | succeeded = false |
| bool | timeout = false |
| long | response_code = 0 |
| std::string | data |
| u64 | caller = HTTPFETCH_DISCARD |
| u64 | request_id = 0 |
|
default |
|
inline |
References caller, and request_id.
|
inline |
returns true if the request succeeded with a non-error status code
References response_code, and succeeded.
Referenced by GUIEngine::downloadFile(), ClientMediaDownloader::remoteHashSetReceived(), ClientMediaDownloader::remoteMediaReceived(), and SingleMediaDownloader::remoteMediaReceived().
| u64 HTTPFetchResult::caller = HTTPFETCH_DISCARD |
Referenced by HTTPFetchResult(), HTTPFetchOngoing::complete(), and httpfetch_deliver_result().
| std::string HTTPFetchResult::data |
| u64 HTTPFetchResult::request_id = 0 |
| long HTTPFetchResult::response_code = 0 |
Referenced by HTTPFetchOngoing::complete(), good(), and ModApiHttp::push_http_fetch_result().
| bool HTTPFetchResult::succeeded = false |
Referenced by HTTPFetchOngoing::complete(), good(), and ModApiHttp::push_http_fetch_result().
| bool HTTPFetchResult::timeout = false |
Referenced by HTTPFetchOngoing::complete(), and ModApiHttp::push_http_fetch_result().