Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

HTTP request work item. More...

+ Inheritance diagram for HTTPWorkItem:
+ Collaboration diagram for HTTPWorkItem:

Public Member Functions

 HTTPWorkItem (std::unique_ptr< HTTPRequest > _req, const std::string &_path, const HTTPRequestHandler &_func)
 
void operator() () override
 
- Public Member Functions inherited from HTTPClosure
virtual ~HTTPClosure ()
 

Public Attributes

std::unique_ptr< HTTPRequestreq
 

Private Attributes

std::string path
 
HTTPRequestHandler func
 

Detailed Description

HTTP request work item.

Definition at line 49 of file httpserver.cpp.

Constructor & Destructor Documentation

◆ HTTPWorkItem()

HTTPWorkItem::HTTPWorkItem ( std::unique_ptr< HTTPRequest _req,
const std::string &  _path,
const HTTPRequestHandler _func 
)
inline

Definition at line 52 of file httpserver.cpp.

Member Function Documentation

◆ operator()()

void HTTPWorkItem::operator() ( )
inlineoverridevirtual

Implements HTTPClosure.

Definition at line 56 of file httpserver.cpp.

References func, path, and req.

Member Data Documentation

◆ func

HTTPRequestHandler HTTPWorkItem::func
private

Definition at line 65 of file httpserver.cpp.

Referenced by operator()().

◆ path

std::string HTTPWorkItem::path
private

Definition at line 64 of file httpserver.cpp.

Referenced by operator()().

◆ req

std::unique_ptr<HTTPRequest> HTTPWorkItem::req

Definition at line 61 of file httpserver.cpp.

Referenced by operator()().


The documentation for this class was generated from the following file:
Released under the MIT license