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 59 of file ConfigHTTP.h.

Constructor & Destructor Documentation

◆ ConfigHTTP() [1/3]

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

Definition at line 55 of file ConfigHTTP.cpp.

55 {
56 pipelinedRequestsOpt = net::config::ConfigSection(&configInstance, "http", "HTTP behavior")
57 .addFlag( //
58 "--pipelined-requests",
59 "Pipelined requests",
60 "bool",
61 XSTR(HTTP_REQUEST_PIPELINED),
62 CLI::IsMember({"true", "false"}));
63 }
#define XSTR(s)
CLI::Option * addFlag(const std::string &name, const std::string &description, const std::string &typeName)
CLI::Option * pipelinedRequestsOpt
Definition ConfigHTTP.h:73

References net::config::ConfigSection::addFlag(), net::config::ConfigSection::ConfigSection(), and pipelinedRequestsOpt.

Referenced by web::http::client::SocketContextFactory::SocketContextFactory().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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 69 of file ConfigHTTP.cpp.

69 {
70 return pipelinedRequestsOpt->as<bool>();
71 }

References pipelinedRequestsOpt.

Referenced by web::http::client::SocketContextFactory::create().

Here is the caller graph for this function:

◆ 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 65 of file ConfigHTTP.cpp.

65 {
66 pipelinedRequestsOpt->default_val(pipelinedRequests ? "true" : "false");
67 }

References pipelinedRequestsOpt.

Referenced by web::http::client::SocketContextFactory::setPipelinedRequests().

Here is the caller graph for this function:

Member Data Documentation

◆ pipelinedRequestsOpt

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

Definition at line 73 of file ConfigHTTP.h.

Referenced by ConfigHTTP(), getPipelinedRequests(), and setPipelinedRequests().


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