Motion Master 6.0.0-alpha.86
Next-generation motion control software
Loading...
Searching...
No Matches
mm::net::Response Struct Reference

What the server answered. More...

#include <http_client.h>

Collaboration diagram for mm::net::Response:
[legend]

Public Attributes

int status = 0
 HTTP status code, as the server sent it.
 
std::string body
 Response body, however long, exactly as received.
 

Detailed Description

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.

Member Data Documentation

◆ body

std::string mm::net::Response::body

Response body, however long, exactly as received.

◆ status

int mm::net::Response::status = 0

HTTP status code, as the server sent it.


The documentation for this struct was generated from the following file: