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

The reflection base class template for HTTP controllers. More...

#include <drogon/HttpController.h>

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

Static Public Attributes

static constexpr bool isAutoCreation = AutoCreation

Static Protected Member Functions

template<typename FUNCTION>
static void registerMethod (FUNCTION &&function, const std::string &pattern, const std::vector< internal::HttpConstraint > &constraints={}, bool classNameInPath=true, const std::string &handlerName="")
template<typename FUNCTION>
static void registerMethodViaRegex (FUNCTION &&function, const std::string &regExp, const std::vector< internal::HttpConstraint > &constraints=std::vector< internal::HttpConstraint >{}, const std::string &handlerName="")

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'.
Static Public Member Functions inherited from drogon::DrObject< T >
static const std::string & classTypeName ()

Detailed Description

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

The reflection base class template for HTTP controllers.

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

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