10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
tenduke::http::curl Namespace Reference

Detailed Description

Implementation of HTTP-client using libcurl.

This is the default HTTPClient implementation provided by this client.

Classes

class  LibCurlHTTPCall
 LibCurl-based implementation of tenduke::http::HTTPCall. More...
class  LibCurlHTTPClient
 LibCurl -based implementation of HTTPClient. More...

Functions

void parseResponseHeaderLine (const char *line, std::size_t len, std::multimap< std::string, std::string > &headers)
 Parses one response header line received from libcurl and adds the header to headers.

Function Documentation

◆ parseResponseHeaderLine()

void tenduke::http::curl::parseResponseHeaderLine ( const char * line,
std::size_t len,
std::multimap< std::string, std::string > & headers )

Parses one response header line received from libcurl and adds the header to headers.

Lines without a colon, e.g. the status line and the empty line ending the headers, and lines with a leading colon are ignored. Whitespace around the value and the line ending (CR LF) are removed.

Parameters
linethe line, does not have to be null-terminated
lenlength of the line
headersthe headers