magpie
Loading...
Searching...
No Matches
magpie::routing::Route< path, ContextType > Struct Template Reference
Inheritance diagram for magpie::routing::Route< path, ContextType >:
Collaboration diagram for magpie::routing::Route< path, ContextType >:

Public Member Functions

 Route (const RouteCallback< path, ContextType > &callback)
template<std::size_t... I>
constexpr auto typeToFuncArgs (const std::vector< std::string_view > &requestedPath, std::index_sequence< I... >)
virtual void invoke (const std::vector< std::string_view > &requestedPath, ContextType *context, Request &req, Response &res) override
Public Member Functions inherited from magpie::routing::BaseRoute< ContextType >
virtual BaseRouteregisterMiddlewares (std::vector< std::shared_ptr< Middleware< ContextType > > > &&middlewares)
virtual Middlewares< ContextType > * getMiddlewaresAsPtr ()

Public Attributes

const RouteCallback< path, ContextType > callback

Static Public Attributes

static constexpr size_t Size = guessParams<path>()
static constexpr auto typeTuples = getForwardableIndices<path>()

Additional Inherited Members

Protected Attributes inherited from magpie::routing::BaseRoute< ContextType >
Middlewares< ContextType > middlewares

Member Function Documentation

◆ invoke()

template<FixedString path, data::IsCommonData ContextType>
virtual void magpie::routing::Route< path, ContextType >::invoke ( const std::vector< std::string_view > & requestedPath,
ContextType * context,
Request & req,
Response & res )
inlineoverridevirtual

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