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

#include <UpgradeCommand.h>

Inheritance diagram for web::http::client::commands::UpgradeCommand:
Collaboration diagram for web::http::client::commands::UpgradeCommand:

Public Member Functions

 UpgradeCommand (const std::string &url, const std::string &protocols)
 
 ~UpgradeCommand () override=default
 
bool execute (Request *request) override
 
- Public Member Functions inherited from web::http::client::RequestCommand
 RequestCommand ()=default
 
 RequestCommand (const RequestCommand &)=delete
 
 RequestCommand (RequestCommand &&) noexcept=delete
 
RequestCommandoperator= (const RequestCommand &)=delete
 
RequestCommandoperator= (RequestCommand &&) noexcept=delete
 
virtual ~RequestCommand ()
 
bool getError () const
 

Private Attributes

std::string url
 
std::string protocols
 

Additional Inherited Members

- Protected Attributes inherited from web::http::client::RequestCommand
bool error = false
 

Detailed Description

Definition at line 33 of file UpgradeCommand.h.

Constructor & Destructor Documentation

◆ UpgradeCommand()

web::http::client::commands::UpgradeCommand::UpgradeCommand ( const std::string & url,
const std::string & protocols )

◆ ~UpgradeCommand()

web::http::client::commands::UpgradeCommand::~UpgradeCommand ( )
overridedefault

Member Function Documentation

◆ execute()

bool web::http::client::commands::UpgradeCommand::execute ( Request * request)
overridevirtual

Implements web::http::client::RequestCommand.

Definition at line 35 of file UpgradeCommand.cpp.

35 {
36 return request->executeUpgrade(url, protocols);
37 }

Member Data Documentation

◆ protocols

std::string web::http::client::commands::UpgradeCommand::protocols
private

Definition at line 43 of file UpgradeCommand.h.

◆ url

std::string web::http::client::commands::UpgradeCommand::url
private

Definition at line 42 of file UpgradeCommand.h.


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