17 #ifndef MASTODONPP_ANSWER_HPP
18 #define MASTODONPP_ANSWER_HPP
22 #include <string_view>
30 using std::string_view;
86 explicit operator bool()
const;
93 explicit operator string_view()
const;
100 friend std::ostream &
operator <<(std::ostream &out,
106 #endif // MASTODONPP_ANSWER_HPP
string headers
The headers of the response from the server.
Definition: answer.hpp:71
uint8_t curl_error_code
The error code returned by libcurl.
Definition: answer.hpp:50
C++ wrapper for the Mastodon API.
Definition: answer.cpp:19
string body
The response from the server, usually JSON.
Definition: answer.hpp:78
string error_message
The error message.
Definition: answer.hpp:57
Return type for Requests.
Definition: answer.hpp:40
friend std::ostream & operator<<(std::ostream &out, const answer_type &answer)
Returns body as std::ostream.
Definition: answer.cpp:32
uint16_t http_status
HTTP status code.
Definition: answer.hpp:64