CCF
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ccf::RESTVerb Class Reference

#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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RESTVerb() [1/3]

ccf::RESTVerb::RESTVerb ( )
inline

◆ RESTVerb() [2/3]

ccf::RESTVerb::RESTVerb ( const llhttp_method &  hm)
inline

◆ RESTVerb() [3/3]

ccf::RESTVerb::RESTVerb ( const std::string &  s)
inline

Member Function Documentation

◆ c_str()

const char * ccf::RESTVerb::c_str ( ) const
inline

◆ get_http_method()

std::optional< llhttp_method > ccf::RESTVerb::get_http_method ( ) const
inline

◆ operator!=()

bool ccf::RESTVerb::operator!= ( const RESTVerb o) const
inline

◆ operator<()

bool ccf::RESTVerb::operator< ( const RESTVerb o) const
inline

◆ operator==()

bool ccf::RESTVerb::operator== ( const RESTVerb o) const
inline

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