|
Motion Master 6.0.0-alpha.86
Next-generation motion control software
|
What the server answered. More...
#include <http_client.h>
Public Attributes | |
| int | status = 0 |
| HTTP status code, as the server sent it. | |
| std::string | body |
| Response body, however long, exactly as received. | |
What the server answered.
A transport failure is the error side of std::expected, so a Response means the request reached a server and it replied. The reply may still be a refusal: status carries the HTTP status and the caller decides. Nothing here treats a 4xx as an error, because a caller that proxies a response needs both halves of it.
| std::string mm::net::Response::body |
Response body, however long, exactly as received.
| int mm::net::Response::status = 0 |
HTTP status code, as the server sent it.