An HTTP response. A status of 400 or 500 is a response, not an error.
More...
#include <http.hpp>
|
| const std::string * | header (std::string_view name) const |
| | The first header named name (any case), or nullptr if there is none.
|
| |
| bool | ok () const |
| |
|
| int | status = 0 |
| |
| std::vector< std::pair< std::string, std::string > > | headers |
| | Response headers in the order received, names in lowercase.
|
| |
| std::string | body |
| | The body. Empty when HttpTransport::stream() delivered it to its callback.
|
| |
An HTTP response. A status of 400 or 500 is a response, not an error.
◆ header()
| const std::string * pulsatrix::orch::HttpResponse::header |
( |
std::string_view |
name | ) |
const |
The first header named name (any case), or nullptr if there is none.
◆ ok()
| bool pulsatrix::orch::HttpResponse::ok |
( |
| ) |
const |
|
inline |
◆ body
| std::string pulsatrix::orch::HttpResponse::body |
◆ headers
| std::vector<std::pair<std::string, std::string> > pulsatrix::orch::HttpResponse::headers |
Response headers in the order received, names in lowercase.
◆ status
| int pulsatrix::orch::HttpResponse::status = 0 |
The documentation for this struct was generated from the following file: