SNode.C
Loading...
Searching...
No Matches
express::middleware Namespace Reference

Classes

class  BasicAuthentication
 
class  JsonMiddleware
 
class  StaticMiddleware
 
class  VerboseRequest
 
class  VHost
 

Functions

class StaticMiddleware & StaticMiddleware (const std::string &root)
 
class JsonMiddleware & JsonMiddleware ()
 
class BasicAuthentication & BasicAuthentication (const std::string &userName, const std::string &password, const std::string &realm)
 
class VHost & VHost (const std::string &host)
 
class VerboseRequest & VerboseRequest (VerboseRequest::Details details=VerboseRequest::W_ALL)
 

Function Documentation

◆ BasicAuthentication()

class BasicAuthentication & express::middleware::BasicAuthentication ( const std::string & userName,
const std::string & password,
const std::string & realm )

Definition at line 86 of file BasicAuthentication.cpp.

86 {
87 return BasicAuthentication::instance(userName, password, realm);
88 }

◆ JsonMiddleware()

class JsonMiddleware & express::middleware::JsonMiddleware ( )

Definition at line 89 of file JsonMiddleware.cpp.

89 {
90 return JsonMiddleware::instance();
91 }

◆ StaticMiddleware()

class StaticMiddleware & express::middleware::StaticMiddleware ( const std::string & root)

Definition at line 174 of file StaticMiddleware.cpp.

174 {
175 return StaticMiddleware::instance(root);
176 }

◆ VerboseRequest()

class VerboseRequest & express::middleware::VerboseRequest ( VerboseRequest::Details details = VerboseRequest::W_ALL)

Definition at line 75 of file VerboseRequest.cpp.

75 {
76 static std::shared_ptr<class VerboseRequest> verboseRequest = nullptr;
77
78 if (verboseRequest == nullptr) {
79 verboseRequest = std::shared_ptr<class VerboseRequest>(new class VerboseRequest(details));
80 }
81
82 return *verboseRequest;
83 }

◆ VHost()

class VHost & express::middleware::VHost ( const std::string & host)

Definition at line 73 of file VHost.cpp.

73 {
74 return VHost::instance(host);
75 }