StormByte-Network 4.0.0
C++26 networking module of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Network::HTTP::Response Struct Reference

Fully buffered final response; informational responses are consumed, 3xx is returned unchanged, and body bytes are not decompressed. More...

#include <StormByte/network/http/client.hxx>

Collaboration diagram for StormByte::Network::HTTP::Response:

Public Member Functions

 Response ()
 Construct an empty response.
 Response (const Response &other)
 Independently copy the response.
 Response (Response &&other) noexcept
 Transfer response ownership.
 ~Response () noexcept
 Release provider-owned fields.
Response & operator= (const Response &other)
 Independently replace the response.
Response & operator= (Response &&other) noexcept
 Transfer response ownership.

Public Attributes

unsigned short status {0}
 Final three-digit status.
Protocol protocol {Protocol::HTTP1}
 Actual HTTP wire protocol.
Safe::Vector< Header > headers
 Final fields, preserving duplicates.
Safe::Vector< Header > trailers
 Validated trailing fields.
Safe::Binary body
 Byte-exact entity body after transfer framing removal.

Detailed Description

Fully buffered final response; informational responses are consumed, 3xx is returned unchanged, and body bytes are not decompressed.

Independent copies and provider-side lifecycle; moved owning fields are empty. Network and Base must remain loaded until release.

Constructor & Destructor Documentation

◆ Response() [1/3]

StormByte::Network::HTTP::Response::Response ( )

Construct an empty response.

◆ Response() [2/3]

StormByte::Network::HTTP::Response::Response ( const Response & other)

Independently copy the response.

Parameters
otherSource response.

◆ Response() [3/3]

StormByte::Network::HTTP::Response::Response ( Response && other)
noexcept

Transfer response ownership.

Parameters
otherSource response.

◆ ~Response()

StormByte::Network::HTTP::Response::~Response ( )
noexcept

Release provider-owned fields.

Member Function Documentation

◆ operator=() [1/2]

Response & StormByte::Network::HTTP::Response::operator= ( const Response & other)

Independently replace the response.

Parameters
otherSource response.
Returns
This response.

◆ operator=() [2/2]

Response & StormByte::Network::HTTP::Response::operator= ( Response && other)
noexcept

Transfer response ownership.

Parameters
otherSource response.
Returns
This response.

Member Data Documentation

◆ body

Safe::Binary StormByte::Network::HTTP::Response::body

Byte-exact entity body after transfer framing removal.

◆ headers

Safe::Vector<Header> StormByte::Network::HTTP::Response::headers

Final fields, preserving duplicates.

◆ protocol

Protocol StormByte::Network::HTTP::Response::protocol {Protocol::HTTP1}

Actual HTTP wire protocol.

◆ status

unsigned short StormByte::Network::HTTP::Response::status {0}

Final three-digit status.

◆ trailers

Safe::Vector<Header> StormByte::Network::HTTP::Response::trailers

Validated trailing fields.


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