Classes | |
struct | JwtVerifier |
Public Types | |
typedef boost::function< void(const Ptr< http::Response > &)> ResponseWriter | ASSERT_NO_ROLLBACK |
Functor to send a http response and finish a http request processing. | |
typedef boost::function< void(Ptr< http::Response > ret, const http::Request &request, const MatchResult ¶ms)> | Handler |
typedef boost::function< void(Ptr< http::Response > ret, const http::Request2 &request, const MatchResult ¶ms)> | Handler2 |
typedef boost::function< void(const http::Request2 &request, const MatchResult ¶ms, const ResponseWriter &finisher)> | Handler3 |
typedef boost::function< void(const fun::Json &jwt_claim, const http::Request2 &request, const MatchResult ¶ms, const ResponseWriter &finisher)> | JwtEnabledHandler |
typedef boost::smatch | MatchResult |
Static Public Member Functions | |
static void | RegisterHandler (const http::Method &method, const boost::regex &re, const Handler &handler) |
Register API handler for the given path regular expression. More... | |
static void | RegisterHandler2 (const http::Method &method, const boost::regex &re, const Handler2 &handler) |
Register API handler for the given path regular expression. More... | |
static void | RegisterHandler3 (const http::Method &method, const boost::regex &re, const Handler3 &handler) |
Register API handler for the given path regular expression. More... | |
static void | RegisterJwtEnabledHandler (const http::Method &method, const boost::regex &re, const JwtEnabledHandler &handler, const Ptr< JwtVerifier > &jwt_verifier) |
typedef boost::function< void(Ptr<http::Response> ret, const http::Request &request, const MatchResult ¶ms)> fun::ApiService::Handler |
ret | pointer to http::Response. |
request | http::Request instance. |
params | map that holds named params in the path. |
typedef boost::function< void(Ptr<http::Response> ret, const http::Request2 &request, const MatchResult ¶ms)> fun::ApiService::Handler2 |
ret | pointer to http::Response. |
request | http::Request2 instance for multiple query string values. |
params | map that holds named params in the path. |
typedef boost::function< void(const http::Request2 &request, const MatchResult ¶ms, const ResponseWriter &finisher)> fun::ApiService::Handler3 |
ret | pointer to http::Response. |
request | http::Request2 instance for multiple query string values. |
params | map that holds named params in the path. |
finisher | functor to finish the http request. |
|
static |
You can use (?<NAME>pattern) to name a subexpression and the tagged expression will be passed as ParamMap (i.e. key=NAME and value=matching result)
method | either kGet, kPost, kDelete, ... |
re | string Perl-style regular expression. |
handler | Handler instance. |
|
static |
You can use (?<NAME>pattern) to name a subexpression and the tagged expression will be passed as ParamMap (i.e. key=NAME and value=matching result)
method | either kGet, kPost, kDelete, ... |
re | string Perl-style regular expression. |
handler | Handler2 instance. |
|
static |
You can use (?<NAME>pattern) to name a subexpression and the tagged expression will be passed as ParamMap (i.e. key=NAME and value=matching result)
method | either kGet, kPost, kDelete, ... |
re | string Perl-style regular expression. |
handler | Handler3 instance. |