|
10Duke Enterprise C++ SDK
|
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. | |
| 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.
| line | the line, does not have to be null-terminated |
| len | length of the line |
| headers | the headers |