MySQL 26.7.0
Source Code Documentation
HttpServerPluginConfig Class Reference
Inheritance diagram for HttpServerPluginConfig:
[legend]

Public Member Functions

 HttpServerPluginConfig (const mysql_harness::ConfigSection *section)
 
std::string get_default_ciphers () const
 
std::string get_default (std::string_view option) const override
 Gets the default for the given option. More...
 
bool is_required (std::string_view) const override
 Returns whether the given option is required. More...
 
- Public Member Functions inherited from mysql_harness::BasePluginConfig
 BasePluginConfig ()=default
 
 BasePluginConfig (const BasePluginConfig &)=default
 
 BasePluginConfig (BasePluginConfig &&)=default
 
BasePluginConfigoperator= (const BasePluginConfig &)=default
 
BasePluginConfigoperator= (BasePluginConfig &&)=default
 
virtual ~BasePluginConfig ()=default
 destructor More...
 
std::string get_option_description (const mysql_harness::ConfigSection *section, std::string_view option) const
 get description of the option. More...
 
template<class Func >
decltype(auto) get_option (const mysql_harness::ConfigSection *section, std::string_view option, Func &&transformer) const
 get option value. More...
 
template<class Func >
decltype(auto) get_option_no_default (const mysql_harness::ConfigSection *section, std::string_view option, Func &&transformer) const
 get option value. More...
 
std::string get_option_string (const mysql_harness::ConfigSection *section, std::string_view option) const
 Gets value of given option as string. More...
 
template<class T >
T get_uint_option (const mysql_harness::ConfigSection *section, std::string_view option, T min_value=0, T max_value=std::numeric_limits< T >::max()) const
 Gets an unsigned integer using the given option. More...
 
std::chrono::milliseconds get_option_milliseconds (const mysql_harness::ConfigSection *section, std::string_view option, double min_value=0.0, double max_value=std::numeric_limits< double >::max()) const
 Gets a number of milliseconds using the given option. More...
 

Public Attributes

std::string static_basedir_
 
std::string srv_address_
 
std::string require_realm_
 
std::string ssl_cert_
 
std::string ssl_key_
 
std::string ssl_cipher_
 
std::string ssl_dh_params_
 
std::string ssl_curves_
 
bool with_ssl_
 
uint16_t srv_port_
 
uint64_t max_http_connections_
 
uint64_t max_request_body_size_
 
uint64_t max_response_body_size_
 

Additional Inherited Members

- Protected Member Functions inherited from mysql_harness::BasePluginConfig
 BasePluginConfig (const mysql_harness::ConfigSection *section)
 Constructor for derived classes. More...
 
- Static Protected Member Functions inherited from mysql_harness::BasePluginConfig
static std::string get_section_name (const mysql_harness::ConfigSection *section)
 Generate the name for this configuration. More...
 

Constructor & Destructor Documentation

◆ HttpServerPluginConfig()

HttpServerPluginConfig::HttpServerPluginConfig ( const mysql_harness::ConfigSection section)
inlineexplicit

Member Function Documentation

◆ get_default()

std::string HttpServerPluginConfig::get_default ( std::string_view  option) const
inlineoverridevirtual

Gets the default for the given option.

Gets the default value of the given option. If no default option is available, an empty string is returned.

Parameters
optionname of the option
Returns
default value for given option as std::string

Implements mysql_harness::BasePluginConfig.

◆ get_default_ciphers()

std::string HttpServerPluginConfig::get_default_ciphers ( ) const
inline

◆ is_required()

bool HttpServerPluginConfig::is_required ( std::string_view  option) const
inlineoverridevirtual

Returns whether the given option is required.

Returns
bool

Implements mysql_harness::BasePluginConfig.

Member Data Documentation

◆ max_http_connections_

uint64_t HttpServerPluginConfig::max_http_connections_

◆ max_request_body_size_

uint64_t HttpServerPluginConfig::max_request_body_size_

◆ max_response_body_size_

uint64_t HttpServerPluginConfig::max_response_body_size_

◆ require_realm_

std::string HttpServerPluginConfig::require_realm_

◆ srv_address_

std::string HttpServerPluginConfig::srv_address_

◆ srv_port_

uint16_t HttpServerPluginConfig::srv_port_

◆ ssl_cert_

std::string HttpServerPluginConfig::ssl_cert_

◆ ssl_cipher_

std::string HttpServerPluginConfig::ssl_cipher_

◆ ssl_curves_

std::string HttpServerPluginConfig::ssl_curves_

◆ ssl_dh_params_

std::string HttpServerPluginConfig::ssl_dh_params_

◆ ssl_key_

std::string HttpServerPluginConfig::ssl_key_

◆ static_basedir_

std::string HttpServerPluginConfig::static_basedir_

◆ with_ssl_

bool HttpServerPluginConfig::with_ssl_

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