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 VerboseRequest & VerboseRequest (VerboseRequest::Details details=VerboseRequest::W_ALL)
 
class VHost & VHost (const std::string &host)
 

Function Documentation

◆ BasicAuthentication()

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

Definition at line 66 of file BasicAuthentication.cpp.

66 {
67 return BasicAuthentication::instance(userName, password, realm);
68 }

◆ JsonMiddleware()

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

Definition at line 69 of file JsonMiddleware.cpp.

69 {
70 return JsonMiddleware::instance();
71 }

◆ StaticMiddleware()

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

Definition at line 141 of file StaticMiddleware.cpp.

141 {
142 return StaticMiddleware::instance(root);
143 }

◆ VerboseRequest()

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

Definition at line 53 of file VerboseRequest.cpp.

53 {
54 static std::shared_ptr<class VerboseRequest> verboseRequest = nullptr;
55
56 if (verboseRequest == nullptr) {
57 verboseRequest = std::shared_ptr<class VerboseRequest>(new class VerboseRequest(details));
58 }
59
60 return *verboseRequest;
61 }

◆ VHost()

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

Definition at line 51 of file VHost.cpp.

51 {
52 return VHost::instance(host);
53 }