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

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

#include <drogon/HttpSimpleController.h>

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

Static Public Attributes

static const bool isAutoCreation = AutoCreation

Static Protected Member Functions

static void registerSelf__ (const std::string &path, const std::vector< internal::HttpConstraint > &constraints)

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::HttpSimpleControllerBase
virtual void asyncHandleHttpRequest (const HttpRequestPtr &req, std::function< void(const HttpResponsePtr &)> &&callback)=0
 The function is called when a HTTP request is routed to the controller.
Static Public Member Functions inherited from drogon::DrObject< T >
static const std::string & classTypeName ()

Detailed Description

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

The reflection base class template for HTTP simple 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: