Luanti 5.16.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 ( const HTTPFetchRequest & request,
CurlHandlePool * pool )

References curl, g_settings, HTTP_DELETE, HTTP_GET, HTTP_HEAD, http_header, HTTP_PATCH, HTTP_POST, HTTP_PUT, HTTPFETCH_DISCARD, httpfetch_discardfunction(), httpfetch_writefunction(), multipart_mime, pool, request, result, and urlencode().

Here is the call graph for this function:

◆ ~HTTPFetchOngoing()

HTTPFetchOngoing::~HTTPFetchOngoing ( )

References curl, errorstream, 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 curl, errorstream, HTTPFETCH_PRINT_ERR, request, result, and safe_print_string().

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: