drogon
C++14/17-based HTTP application framework
Loading...
Searching...
No Matches
drogon::HttpMiddleware< T, AutoCreation > Class Template Reference

The reflection base class template for middlewares. More...

#include <drogon/HttpMiddleware.h>

Inheritance diagram for drogon::HttpMiddleware< T, AutoCreation >:
Collaboration diagram for drogon::HttpMiddleware< T, AutoCreation >:

Static Public Attributes

static constexpr bool isAutoCreation {AutoCreation}

Additional Inherited Members

Public Member Functions inherited from drogon::DrObject< T >
const std::string & className () const override
 Get the class name.
bool isClass (const std::string &class_name) const override
 Return true if the class name is 'class_name'.
Public Member Functions inherited from drogon::HttpMiddlewareBase
virtual void invoke (const HttpRequestPtr &req, MiddlewareNextCallback &&nextCb, MiddlewareCallback &&mcb)=0
Static Public Member Functions inherited from drogon::DrObject< T >
static const std::string & classTypeName ()

Detailed Description

template<typename T, bool AutoCreation = true>
class drogon::HttpMiddleware< T, AutoCreation >

The reflection base class template for middlewares.

Template Parameters
TThe type of the implementation class
AutoCreationThe flag for automatically creating, user can set this flag to false for classes that have non-default constructors.

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