Luanti 5.19.0-dev
Loading...
Searching...
No Matches
HTTPFetchResult Struct Reference

#include <httpfetch.h>

Collaboration diagram for HTTPFetchResult:

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

Constructor & Destructor Documentation

◆ HTTPFetchResult() [1/2]

HTTPFetchResult::HTTPFetchResult ( )
default

Referenced by httpfetch_sync_interruptible().

Here is the caller graph for this function:

◆ HTTPFetchResult() [2/2]

HTTPFetchResult::HTTPFetchResult ( const HTTPFetchRequest & fetch_request)
inline

References caller, and request_id.

Member Function Documentation

◆ good()

bool HTTPFetchResult::good ( ) const
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().

Here is the caller graph for this function:

Member Data Documentation

◆ caller

◆ data

◆ request_id

◆ response_code

long HTTPFetchResult::response_code = 0

◆ succeeded

bool HTTPFetchResult::succeeded = false

◆ timeout

bool HTTPFetchResult::timeout = false

The documentation for this struct was generated from the following file: