|
Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
|
The result of a ClientRequest. More...
#include <Client.hpp>
Public Member Functions | |
| bool | ok () const |
| True if a response arrived (any status, including 4xx and 5xx). | |
| std::optional< std::string > | header (std::string_view name) const |
The last header named name (case-insensitive). | |
Public Attributes | |
| long | status = 0 |
| 0 if no response arrived | |
| std::vector< std::pair< std::string, std::string > > | headers |
| Of the final response. | |
| std::string | body |
| std::string | effective_url |
| After redirects. | |
| std::string | error |
| Empty on success. | |
The result of a ClientRequest.
| std::optional< std::string > orbit::http::ClientResponse::header | ( | std::string_view | name | ) | const |
The last header named name (case-insensitive).
|
inline |
True if a response arrived (any status, including 4xx and 5xx).
| std::string orbit::http::ClientResponse::body |
| std::string orbit::http::ClientResponse::effective_url |
After redirects.
| std::string orbit::http::ClientResponse::error |
Empty on success.
| std::vector<std::pair<std::string, std::string> > orbit::http::ClientResponse::headers |
Of the final response.
| long orbit::http::ClientResponse::status = 0 |
0 if no response arrived