SNode.C
Loading...
Searching...
No Matches
web::http::client::ConfigHTTP Class Reference

#include <ConfigHTTP.h>

Collaboration diagram for web::http::client::ConfigHTTP:

Public Member Functions

 ConfigHTTP (net::config::ConfigInstance &configInstance)
 
 ConfigHTTP (ConfigHTTP &)=delete
 
ConfigHTTPoperator= (ConfigHTTP &)=delete
 
 ConfigHTTP (ConfigHTTP &&) noexcept=default
 
ConfigHTTPoperator= (ConfigHTTP &&)=delete
 
void setPipelinedRequests (bool pipelinedRequests)
 
bool getPipelinedRequests () const
 

Private Attributes

CLI::Option * pipelinedRequestsOpt = nullptr
 

Detailed Description

Definition at line 37 of file ConfigHTTP.h.

Constructor & Destructor Documentation

◆ ConfigHTTP() [1/3]

web::http::client::ConfigHTTP::ConfigHTTP ( net::config::ConfigInstance & configInstance)
explicit

Definition at line 33 of file ConfigHTTP.cpp.

33 {
34 pipelinedRequestsOpt = net::config::ConfigSection(&configInstance, "http", "HTTP behavior")
35 .addFlag( //
36 "--pipelined-requests",
37 "Pipelined requests",
38 "bool",
39 XSTR(HTTP_REQUEST_PIPELINED),
40 CLI::IsMember({"true", "false"}));
41 }
#define XSTR(s)
CLI::Option * addFlag(const std::string &name, const std::string &description, const std::string &typeName)
CLI::Option * pipelinedRequestsOpt
Definition ConfigHTTP.h:51

◆ ConfigHTTP() [2/3]

web::http::client::ConfigHTTP::ConfigHTTP ( ConfigHTTP & )
delete

◆ ConfigHTTP() [3/3]

web::http::client::ConfigHTTP::ConfigHTTP ( ConfigHTTP && )
defaultnoexcept

Member Function Documentation

◆ getPipelinedRequests()

bool web::http::client::ConfigHTTP::getPipelinedRequests ( ) const

Definition at line 47 of file ConfigHTTP.cpp.

47 {
48 return pipelinedRequestsOpt->as<bool>();
49 }

◆ operator=() [1/2]

ConfigHTTP & web::http::client::ConfigHTTP::operator= ( ConfigHTTP && )
delete

◆ operator=() [2/2]

ConfigHTTP & web::http::client::ConfigHTTP::operator= ( ConfigHTTP & )
delete

◆ setPipelinedRequests()

void web::http::client::ConfigHTTP::setPipelinedRequests ( bool pipelinedRequests)

Definition at line 43 of file ConfigHTTP.cpp.

43 {
44 pipelinedRequestsOpt->default_val(pipelinedRequests ? "true" : "false");
45 }

Member Data Documentation

◆ pipelinedRequestsOpt

CLI::Option* web::http::client::ConfigHTTP::pipelinedRequestsOpt = nullptr
private

Definition at line 51 of file ConfigHTTP.h.


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