#include <Config.hpp>
◆ ParseMode
How parse() treats a flag it does not know.
| Enumerator |
|---|
| Lenient | Report it on stderr and carry on: the application may handle its own flags.
|
| Strict | Report it and exit(1): the whole command line is Orbit's.
|
◆ parse() [1/2]
Reads the server's command-line flags (see –help).
A malformed value, or a known flag without one, is always fatal. An unknown flag is reported, with the closest known flag when there is one ("did you mean --host?"), and is fatal only in ParseMode::Strict.
◆ parse() [2/2]
parse(), applying the flags on top of base (e.g. settings from a configuration file) instead of the defaults.
◆ backlog
| int orbit::config::ServerConfig::backlog {0} |
◆ cpu_affinity
| bool orbit::config::ServerConfig::cpu_affinity {false} |
◆ engine
◆ event_loops
| size_t orbit::config::ServerConfig::event_loops {0} |
◆ header_timeout
| std::chrono::seconds orbit::config::ServerConfig::header_timeout {10} |
◆ host
| std::string orbit::config::ServerConfig::host {"0.0.0.0"} |
◆ http_version
◆ idle_timeout
| std::chrono::seconds orbit::config::ServerConfig::idle_timeout {30} |
◆ keep_alive_timeout
| std::chrono::seconds orbit::config::ServerConfig::keep_alive_timeout {10} |
◆ log_format
| std::string orbit::config::ServerConfig::log_format {"text"} |
◆ log_level
| std::string orbit::config::ServerConfig::log_level {"INFO"} |
◆ max_body_size
| size_t orbit::config::ServerConfig::max_body_size {10485760} |
◆ max_connections
| size_t orbit::config::ServerConfig::max_connections {0} |
◆ max_header_bytes
| size_t orbit::config::ServerConfig::max_header_bytes {8192} |
◆ max_headers
| size_t orbit::config::ServerConfig::max_headers {100} |
◆ max_request_line
| size_t orbit::config::ServerConfig::max_request_line {4096} |
◆ port
| uint16_t orbit::config::ServerConfig::port {8080} |
◆ shutdown_timeout
| std::chrono::seconds orbit::config::ServerConfig::shutdown_timeout {30} |
◆ sni_certificates
| std::vector<TlsCertificate> orbit::config::ServerConfig::sni_certificates |
◆ ssl_cert
| std::string orbit::config::ServerConfig::ssl_cert {""} |
◆ ssl_key
| std::string orbit::config::ServerConfig::ssl_key {""} |
◆ static_dir
| std::string orbit::config::ServerConfig::static_dir {"./public"} |
◆ tls_reload_interval
| std::chrono::seconds orbit::config::ServerConfig::tls_reload_interval {0} |
◆ websocket_idle_timeout
| std::chrono::seconds orbit::config::ServerConfig::websocket_idle_timeout {0} |
◆ websocket_max_message_size
| size_t orbit::config::ServerConfig::websocket_max_message_size {16 * 1024 * 1024} |
◆ websocket_ping_interval
| std::chrono::seconds orbit::config::ServerConfig::websocket_ping_interval {0} |
◆ worker_threads
| size_t orbit::config::ServerConfig::worker_threads {4} |
The documentation for this struct was generated from the following file: