AXIAM C++ SDK 1.0.0-alpha8
Authentication, authorization, JWKS & route guards (REST + mTLS)
Loading...
Searching...
No Matches
Public Attributes | List of all members
axiam::HttpResponse Struct Reference

An HTTP response, or a transport failure. More...

#include <transport.hpp>

Public Attributes

long status = 0
 
HeaderMap headers
 
std::vector< std::string > set_cookies
 Raw Set-Cookie header values, in arrival order.
 
std::string body
 
std::string transport_error
 

Detailed Description

An HTTP response, or a transport failure.

When transport_error is non-empty the request never completed (connection/DNS/TLS) and the client raises NetworkError; otherwise status + headers + body describe the response.

Member Data Documentation

◆ status

long axiam::HttpResponse::status = 0

◆ headers

HeaderMap axiam::HttpResponse::headers

◆ set_cookies

std::vector<std::string> axiam::HttpResponse::set_cookies

Raw Set-Cookie header values, in arrival order.

Kept separate from headers because a response sets several cookies (axiam_access, axiam_refresh, axiam_csrf) and the case-insensitive HeaderMap would collapse the duplicates. Used to recover the access-token JWT so the org_id/tenant_id claims can be resolved for the refresh body (D-14).

◆ body

std::string axiam::HttpResponse::body

◆ transport_error

std::string axiam::HttpResponse::transport_error

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