PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
kcenon::pacs::web::rest_server_config Struct Reference

Configuration options for the REST server. More...

#include <rest_config.h>

Collaboration diagram for kcenon::pacs::web::rest_server_config:
Collaboration graph

Public Attributes

std::string bind_address {"0.0.0.0"}
 Address to bind the server to.
 
std::uint16_t port {8080}
 Port to listen on.
 
std::size_t concurrency {4}
 Number of worker threads for handling requests.
 
bool enable_cors {true}
 Enable CORS (Cross-Origin Resource Sharing) headers.
 
std::string cors_allowed_origins {"*"}
 CORS allowed origins (empty = allow all)
 
bool enable_tls {false}
 Enable TLS/SSL encryption (future feature)
 
std::string tls_cert_path
 Path to TLS certificate file.
 
std::string tls_key_path
 Path to TLS private key file.
 
std::uint32_t request_timeout_seconds {30}
 Request timeout in seconds.
 
std::size_t max_body_size {10 * 1024 * 1024}
 Maximum request body size in bytes (default 10MB)
 

Detailed Description

Configuration options for the REST server.

Definition at line 29 of file rest_config.h.

Member Data Documentation

◆ bind_address

std::string kcenon::pacs::web::rest_server_config::bind_address {"0.0.0.0"}

Address to bind the server to.

Definition at line 31 of file rest_config.h.

31{"0.0.0.0"};

Referenced by kcenon::pacs::web::rest_server::start(), and kcenon::pacs::web::rest_server::start_async().

◆ concurrency

std::size_t kcenon::pacs::web::rest_server_config::concurrency {4}

Number of worker threads for handling requests.

Definition at line 37 of file rest_config.h.

37{4};

Referenced by kcenon::pacs::web::rest_server::start(), and kcenon::pacs::web::rest_server::start_async().

◆ cors_allowed_origins

std::string kcenon::pacs::web::rest_server_config::cors_allowed_origins {"*"}

CORS allowed origins (empty = allow all)

Definition at line 43 of file rest_config.h.

43{"*"};

Referenced by kcenon::pacs::web::rest_server::start(), and kcenon::pacs::web::rest_server::start_async().

◆ enable_cors

bool kcenon::pacs::web::rest_server_config::enable_cors {true}

Enable CORS (Cross-Origin Resource Sharing) headers.

Definition at line 40 of file rest_config.h.

40{true};

Referenced by kcenon::pacs::web::rest_server::start(), and kcenon::pacs::web::rest_server::start_async().

◆ enable_tls

bool kcenon::pacs::web::rest_server_config::enable_tls {false}

Enable TLS/SSL encryption (future feature)

Definition at line 46 of file rest_config.h.

46{false};

◆ max_body_size

std::size_t kcenon::pacs::web::rest_server_config::max_body_size {10 * 1024 * 1024}

Maximum request body size in bytes (default 10MB)

Definition at line 58 of file rest_config.h.

58{10 * 1024 * 1024};

◆ port

std::uint16_t kcenon::pacs::web::rest_server_config::port {8080}

◆ request_timeout_seconds

std::uint32_t kcenon::pacs::web::rest_server_config::request_timeout_seconds {30}

Request timeout in seconds.

Definition at line 55 of file rest_config.h.

55{30};

◆ tls_cert_path

std::string kcenon::pacs::web::rest_server_config::tls_cert_path

Path to TLS certificate file.

Definition at line 49 of file rest_config.h.

◆ tls_key_path

std::string kcenon::pacs::web::rest_server_config::tls_key_path

Path to TLS private key file.

Definition at line 52 of file rest_config.h.


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