6 #include "connContext.h"
16 ConnContext::Method method;
18 Route(
const std::string& _route, ConnContext::Method _method);
19 Route(
const std::string& _route);
20 virtual std::string name()
const;
26 template <typename T, bool Enable = std::is_compound<T>::value >
36 typedef const T& type;
46 template <
typename P,
typename... T>
48 typedef void (P::*F)(
ConnContext& ctx,
typename sane_ref_type<T>::type...);
51 virtual bool visible()
const {
return false; }
52 Route_(P* p,
const std::string& _route, F _f, ConnContext::Method method);
66 virtual bool visible()
const {
return method == ConnContext::GET || method == ConnContext::ANY; }
67 Route_(P* p,
const std::string& _route, F _f, ConnContext::Method method);
76 template <
typename... T>
79 static Route* With(P* p,
80 const std::string& _route,
82 ConnContext::Method method = ConnContext::ANY);
85 static Route* With(P* p,
86 const std::string& _route,
87 ConnContext::Method method = ConnContext::ANY);
91 #include "routing.tcc"