CCF
|
#include <rest_verb.h>
Public Member Functions | |
RESTVerb () | |
RESTVerb (const llhttp_method &hm) | |
RESTVerb (const std::string &s) | |
std::optional< llhttp_method > | get_http_method () const |
const char * | c_str () const |
bool | operator< (const RESTVerb &o) const |
bool | operator== (const RESTVerb &o) const |
bool | operator!= (const RESTVerb &o) const |
Extension of llhttp_method to allow make_*_endpoint() to be a single uniform interface to define handlers for more than just HTTP verbs. Formerly used to allow WebSockets handlers, now removed. Kept for potential future extensions.
This may be removed if instead of exposing a single RpcContext, callbacks are instead given a specialised *RpcContext, and make_endpoint becomes templated on Verb and specialised on the respective enum types.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |