|
Network System 0.1.1
High-performance modular networking library for scalable client-server applications
|
Configurable message size limits. More...
#include <message_validator.h>

Static Public Attributes | |
| static constexpr size_t | MAX_MESSAGE_SIZE = 16 * 1024 * 1024 |
| Maximum allowed message size (default: 16MB) | |
| static constexpr size_t | MAX_HEADER_SIZE = 8192 |
| Maximum HTTP header size (default: 8KB - Apache default) | |
| static constexpr size_t | MAX_WEBSOCKET_FRAME = 1 * 1024 * 1024 |
| Maximum WebSocket frame payload (default: 1MB) | |
| static constexpr size_t | MAX_HTTP_LINE = 8192 |
| Maximum HTTP request line length (default: 8KB) | |
| static constexpr size_t | MAX_HEADER_COUNT = 100 |
| Maximum number of HTTP headers (default: 100) | |
| static constexpr size_t | MAX_URL_LENGTH = 2048 |
| Maximum URL length (default: 2KB) | |
| static constexpr size_t | MAX_COOKIE_SIZE = 4096 |
| Maximum cookie size (default: 4KB) | |
Configurable message size limits.
These limits can be adjusted based on deployment requirements. Default values are set for general-purpose network applications.
Definition at line 50 of file message_validator.h.
|
staticconstexpr |
Maximum cookie size (default: 4KB)
Definition at line 70 of file message_validator.h.
|
staticconstexpr |
Maximum number of HTTP headers (default: 100)
Definition at line 64 of file message_validator.h.
Referenced by kcenon::network::message_validator::validate_header_count().
|
staticconstexpr |
Maximum HTTP header size (default: 8KB - Apache default)
Definition at line 55 of file message_validator.h.
Referenced by kcenon::network::message_validator::validate_http_header().
|
staticconstexpr |
Maximum HTTP request line length (default: 8KB)
Definition at line 61 of file message_validator.h.
|
staticconstexpr |
Maximum allowed message size (default: 16MB)
Definition at line 52 of file message_validator.h.
|
staticconstexpr |
Maximum URL length (default: 2KB)
Definition at line 67 of file message_validator.h.
Referenced by kcenon::network::message_validator::validate_url().
|
staticconstexpr |
Maximum WebSocket frame payload (default: 1MB)
Definition at line 58 of file message_validator.h.