MySQL 8.4.0
Source Code Documentation
method.h File Reference
#include <bitset>
#include <string_view>
#include "mysqlrouter/http_common_export.h"

Go to the source code of this file.

Namespaces

namespace  http
 
namespace  http::base
 
namespace  http::base::method
 
namespace  http::base::method::Pos
 
namespace  HttpMethod
 

Typedefs

using http::base::method::key_type = int
 
using http::base::method::pos_type = unsigned
 
using http::base::method::Bitset = std::bitset< Pos::_LAST+1 >
 

Functions

HTTP_COMMON_EXPORT key_type http::base::method::from_string (const std::string_view &method_name)
 
HTTP_COMMON_EXPORT pos_type http::base::method::from_string_to_post (const std::string_view &method)
 

Variables

constexpr pos_type http::base::method::Pos::Get = 0
 
constexpr pos_type http::base::method::Pos::Post = 1
 
constexpr pos_type http::base::method::Pos::Head = 2
 
constexpr pos_type http::base::method::Pos::Put = 3
 
constexpr pos_type http::base::method::Pos::Delete = 4
 
constexpr pos_type http::base::method::Pos::Options = 5
 
constexpr pos_type http::base::method::Pos::Trace = 6
 
constexpr pos_type http::base::method::Pos::Connect = 7
 
constexpr pos_type http::base::method::Pos::Patch = 8
 
constexpr pos_type http::base::method::Pos::_LAST = Patch
 
constexpr key_type http::base::method::Unknown {-1}
 
constexpr key_type http::base::method::Get {1 << Pos::Get}
 
constexpr key_type http::base::method::Post {1 << Pos::Post}
 
constexpr key_type http::base::method::Head {1 << Pos::Head}
 
constexpr key_type http::base::method::Put {1 << Pos::Put}
 
constexpr key_type http::base::method::Delete {1 << Pos::Delete}
 
constexpr key_type http::base::method::Options {1 << Pos::Options}
 
constexpr key_type http::base::method::Trace {1 << Pos::Trace}
 
constexpr key_type http::base::method::Connect {1 << Pos::Connect}
 
constexpr key_type http::base::method::Patch {1 << Pos::Patch}