#include <restincurl.h>

Public Member Functions | |
| Result ()=default | |
| Result (const CURLcode &code) | |
| bool | isOk () const noexcept |
Public Attributes | |
| CURLcode | curl_code = {} |
| long | http_response_code = {} |
| std::string | msg |
| std::string | body |
The Result from a request\
|
default |
|
inlinenoexcept |
Check if the reqtest appears to be successful
References curl_code, and http_response_code.
| std::string restincurl::Result::body |
The body of the request returned by the server.
Note that if you specified your own body handler or body variable, for the request, body will be empty.
| CURLcode restincurl::Result::curl_code = {} |
| long restincurl::Result::http_response_code = {} |
The HTTP result code for the request
Referenced by isOk().
| std::string restincurl::Result::msg |
If the request was unsuccessful (curl_code != 0), the error string reported by libcurl.
Referenced by Result().