Scalar request limits. More...
#include <StormByte/network/http/client.hxx>

Public Member Functions | |
| Options () noexcept=default | |
| Construct default scalar limits without allocation. | |
| Options (const Options &other) noexcept=default | |
| Copy limits and the synchronously borrowed cancellation pointer. | |
| Options (Options &&other) noexcept=default | |
| Copy scalar controls; the source remains valid. | |
| ~Options () noexcept=default | |
| Destroy scalar controls without releasing borrowed cancellation. | |
| Options & | operator= (const Options &other) noexcept=default |
| Copy scalar controls. | |
| Options & | operator= (Options &&other) noexcept=default |
| Copy scalar controls; the source remains valid. | |
Public Attributes | |
| Protocol | protocol {Protocol::Automatic} |
| Protocol policy. | |
| std::chrono::milliseconds | timeout {30000} |
| One total DNS-to-body deadline. | |
| const Safe::Atomic< bool > * | cancellation {nullptr} |
| Borrowed until Execute returns. | |
| ByteSize | header_bytes {65536} |
| Aggregate decoded headers, status and trailer bytes. | |
| Size | header_fields {256} |
| Aggregate field count. | |
| Receiver * | receiver {nullptr} |
| Borrowed until Execute returns; streams the final body. | |
| ByteSize | body_bytes {16 * 1024 * 1024} |
| Maximum buffered or streamed body in either direction. | |
| ByteSize | wire_bytes {32 * 1024 * 1024} |
| Maximum incoming wire plaintext. | |
| ByteSize | http2_bytes {1024 * 1024} |
| Maximum live native HTTP/2 session allocation. | |
| ByteSize | url_bytes {8192} |
| Maximum URL bytes. | |
| Size | informational_responses {16} |
| Maximum interim responses. | |
Scalar request limits.
All bounds include informational responses and trailers; wire_bytes counts received HTTP plaintext, including framing. Cancellation is synchronously borrowed, checked during every phase, and wins over timeout. Timeout must be positive and at most 24 hours.
|
defaultnoexcept |
Construct default scalar limits without allocation.
|
defaultnoexcept |
Copy limits and the synchronously borrowed cancellation pointer.
| other | Source options. |
|
defaultnoexcept |
Copy scalar controls; the source remains valid.
| other | Source options. |
|
defaultnoexcept |
Destroy scalar controls without releasing borrowed cancellation.
Copy scalar controls.
| other | Source options. |
Copy scalar controls; the source remains valid.
| other | Source options. |
| ByteSize StormByte::Network::HTTP::Options::body_bytes {16 * 1024 * 1024} |
Maximum buffered or streamed body in either direction.
| const Safe::Atomic<bool>* StormByte::Network::HTTP::Options::cancellation {nullptr} |
Borrowed until Execute returns.
| ByteSize StormByte::Network::HTTP::Options::header_bytes {65536} |
Aggregate decoded headers, status and trailer bytes.
| Size StormByte::Network::HTTP::Options::header_fields {256} |
Aggregate field count.
| ByteSize StormByte::Network::HTTP::Options::http2_bytes {1024 * 1024} |
Maximum live native HTTP/2 session allocation.
| Size StormByte::Network::HTTP::Options::informational_responses {16} |
Maximum interim responses.
| Protocol StormByte::Network::HTTP::Options::protocol {Protocol::Automatic} |
Protocol policy.
| Receiver* StormByte::Network::HTTP::Options::receiver {nullptr} |
Borrowed until Execute returns; streams the final body.
| std::chrono::milliseconds StormByte::Network::HTTP::Options::timeout {30000} |
One total DNS-to-body deadline.
| ByteSize StormByte::Network::HTTP::Options::url_bytes {8192} |
Maximum URL bytes.
| ByteSize StormByte::Network::HTTP::Options::wire_bytes {32 * 1024 * 1024} |
Maximum incoming wire plaintext.