Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
orbit::server::ConnectionLimits Struct Reference

Timeouts applied to a connection, in the phases described on ServerConfig. More...

#include <Connection.hpp>

Public Attributes

size_t max_header_bytes = 8192
 Request line plus headers.
 
size_t max_request_line = 4096
 
size_t max_headers = 100
 Header fields per request.
 
size_t websocket_max_message_size = 16 * 1024 * 1024
 
bool h2c = false
 Accept HTTP/2 with prior knowledge (h2c) on plaintext connections.
 

Detailed Description

Timeouts applied to a connection, in the phases described on ServerConfig.

Request size limits for one connection (see ServerConfig).

Member Data Documentation

◆ h2c

bool orbit::server::ConnectionLimits::h2c = false

Accept HTTP/2 with prior knowledge (h2c) on plaintext connections.

◆ max_header_bytes

size_t orbit::server::ConnectionLimits::max_header_bytes = 8192

Request line plus headers.

◆ max_headers

size_t orbit::server::ConnectionLimits::max_headers = 100

Header fields per request.

◆ max_request_line

size_t orbit::server::ConnectionLimits::max_request_line = 4096

◆ websocket_max_message_size

size_t orbit::server::ConnectionLimits::websocket_max_message_size = 16 * 1024 * 1024

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