Return type for Requests.
More...
#include <return_types.hpp>
Return type for Requests.
- Since
- 0.1.0
Error codes
Code | Explanation |
0 | No error. |
◆ operator bool()
mastodonpp::answer::operator bool |
( |
| ) |
const |
|
explicit |
Returns true if error_code is 0, false otherwise.
- Since
- 0.1.0
◆ operator string_view()
mastodonpp::answer::operator string_view |
( |
| ) |
const |
|
explicit |
Returns body as std::string_view
.
- Since
- 0.1.0
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const answer & |
answer |
|
) |
| |
|
friend |
Returns body as std::ostream
.
- Since
- 0.1.0
◆ body
string mastodonpp::answer::body |
The response from the server, usually JSON.
- Since
- 0.1.0
◆ error_code
uint8_t mastodonpp::answer::error_code |
◆ error_message
string mastodonpp::answer::error_message |
The error message.
- Since
- 0.1.0
◆ http_status
uint16_t mastodonpp::answer::http_status |
HTTP status code.
- Since
- 0.1.0
The documentation for this struct was generated from the following files: