Function registerMethodViaRegex

Synopsis

#include <lib/inc/drogon/HttpController.h>

template <typename FUNCTION>
static void registerMethodViaRegex(FUNCTION &&function, const std::string &regExp, const std::vector< internal::HttpConstraint > &filtersAndMethods=std::vector< internal::HttpConstraint >{}, const std::string &handlerName="")

Description

No description yet.

Source

Lines 111-123 in lib/inc/drogon/HttpController.h.

template <typename FUNCTION>
static void registerMethodViaRegex(
    FUNCTION &&function,
    const std::string &regExp,
    const std::vector<internal::HttpConstraint> &filtersAndMethods =
        std::vector<internal::HttpConstraint>{},
    const std::string &handlerName = "")
{
    app().registerHandlerViaRegex(regExp,
                                  std::forward<FUNCTION>(function),
                                  filtersAndMethods,
                                  handlerName);
}





Add Discussion as Guest

Log in to DocsForge