Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
HTTPFetchOngoing Class Reference
+ Collaboration diagram for HTTPFetchOngoing:

Public Member Functions

 HTTPFetchOngoing (const HTTPFetchRequest &request, CurlHandlePool *pool)
 
 ~HTTPFetchOngoing ()
 
CURLcode start (CURLM *multi)
 
const HTTPFetchResultcomplete (CURLcode res)
 
const HTTPFetchRequestgetRequest () const
 
const CURL * getEasyHandle () const
 

Private Attributes

CurlHandlePoolpool
 
CURL * curl = nullptr
 
CURLM * multi = nullptr
 
HTTPFetchRequest request
 
HTTPFetchResult result
 
struct curl_slist * http_header = nullptr
 
curl_mime * multipart_mime = nullptr
 

Constructor & Destructor Documentation

◆ HTTPFetchOngoing()

◆ ~HTTPFetchOngoing()

HTTPFetchOngoing::~HTTPFetchOngoing ( )

References curl, errorstream, CurlHandlePool::free(), http_header, httpfetch_discardfunction(), multi, multipart_mime, and pool.

+ Here is the call graph for this function:

Member Function Documentation

◆ complete()

const HTTPFetchResult * HTTPFetchOngoing::complete ( CURLcode res)

References HTTPFetchResult::caller, curl, HTTPFetchResult::data, errorstream, HTTPFETCH_PRINT_ERR, request, HTTPFetchResult::response_code, result, safe_print_string(), HTTPFetchResult::succeeded, HTTPFetchRequest::timeout, HTTPFetchResult::timeout, and HTTPFetchRequest::url.

+ Here is the call graph for this function:

◆ getEasyHandle()

const CURL * HTTPFetchOngoing::getEasyHandle ( ) const
inline

References curl.

◆ getRequest()

const HTTPFetchRequest & HTTPFetchOngoing::getRequest ( ) const
inline

References request.

◆ start()

CURLcode HTTPFetchOngoing::start ( CURLM * multi)

References curl, errorstream, and multi.

Member Data Documentation

◆ curl

CURL* HTTPFetchOngoing::curl = nullptr
private

◆ http_header

struct curl_slist* HTTPFetchOngoing::http_header = nullptr
private

◆ multi

CURLM* HTTPFetchOngoing::multi = nullptr
private

Referenced by ~HTTPFetchOngoing(), and start().

◆ multipart_mime

curl_mime* HTTPFetchOngoing::multipart_mime = nullptr
private

◆ pool

CurlHandlePool* HTTPFetchOngoing::pool
private

◆ request

HTTPFetchRequest HTTPFetchOngoing::request
private

◆ result

HTTPFetchResult HTTPFetchOngoing::result
private

Referenced by HTTPFetchOngoing(), and complete().


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