Fully buffered request. More...
#include <StormByte/network/http/client.hxx>

Public Member Functions | |
| Request (std::string_view url={}) | |
| Construct a GET request for a borrowed absolute URL. | |
| Request (const Request &other) | |
| Independently copy the request. | |
| Request (Request &&other) noexcept | |
| Transfer request ownership. | |
| ~Request () noexcept | |
| Release all provider-owned fields. | |
| Request & | operator= (const Request &other) |
| Independently replace the request. | |
| Request & | operator= (Request &&other) noexcept |
| Transfer request ownership. | |
Public Attributes | |
| Safe::String | url |
| Absolute ASCII URL; fragments are rejected. | |
| Safe::String | method |
| Case-sensitive method token; defaults to GET. | |
| Safe::Vector< Header > | headers |
| Ordered duplicate-preserving user headers. | |
| Safe::Binary | body |
| Byte-exact request body, including NUL bytes. | |
Fully buffered request.
Host, framing and connection headers are owned by the client; CONNECT, Upgrade and Expect are not supported.
Lifecycle executes in Network; copies are independent, moved values have empty owning fields and can be reassigned.
|
explicit |
Construct a GET request for a borrowed absolute URL.
| url | Absolute http or https URL. |
| StormByte::Safe::AllocationError | Request text cannot be allocated. |
| StormByte::Network::HTTP::Request::Request | ( | const Request & | other | ) |
Independently copy the request.
| other | Source request. |
|
noexcept |
Transfer request ownership.
| other | Source request. |
|
noexcept |
Release all provider-owned fields.
Independently replace the request.
| other | Source request. |
Transfer request ownership.
| other | Source request. |
| Safe::Binary StormByte::Network::HTTP::Request::body |
Byte-exact request body, including NUL bytes.
| Safe::Vector<Header> StormByte::Network::HTTP::Request::headers |
Ordered duplicate-preserving user headers.
| Safe::String StormByte::Network::HTTP::Request::method |
Case-sensitive method token; defaults to GET.
| Safe::String StormByte::Network::HTTP::Request::url |
Absolute ASCII URL; fragments are rejected.