|
Arachne 1.0
Arachne - the perpetual stitcher of Wikidata entities.
|
Result object for an HTTP transfer. More...
#include <include/utils.hpp>
Public Types | |
| using | header_map = std::multimap<std::string, std::string, std::less<>> |
| Case-preserving multimap of response headers (as returned by libcurl). | |
Public Attributes | |
| size_t | status_code = 0 |
| HTTP status code (e.g., 200, 404). | |
| header_map | header |
| Response headers from the final attempt. | |
| std::string | text |
| Response body accumulated across callbacks. | |
| CURLcode | error_code = CURLE_OK |
| libcurl transport/result code. | |
| std::string | error_message |
| Non-empty on libcurl error. | |
Result object for an HTTP transfer.
Invariants:
| using corespace::http_response::header_map = std::multimap<std::string, std::string, std::less<>> |
| CURLcode corespace::http_response::error_code = CURLE_OK |
libcurl transport/result code.
Definition at line 152 of file utils.hpp.
Referenced by corespace::http_client::get(), corespace::http_client::post_form(), corespace::http_client::post_raw(), corespace::http_client::request_get(), corespace::http_client::request_post(), and corespace::http_client::status_good().
| std::string corespace::http_response::error_message |
Non-empty on libcurl error.
Definition at line 153 of file utils.hpp.
Referenced by corespace::http_client::request_get(), and corespace::http_client::request_post().
| header_map corespace::http_response::header |
| size_t corespace::http_response::status_code = 0 |
| std::string corespace::http_response::text |