dot-xx
A personal collection of small C++ modules
Loading...
Searching...
No Matches
method.xx File Reference
module dxx.http

HTTP methods enum and strings. More...

import std;

Enumerations

enum class  dxx::http::Method {
  Invalid , Get , Head , Post ,
  Put , Delete , Connect , Options ,
  Trace , Patch
}

Variables

const std::flat_map< std::string_view, Methoddxx::http::methods_map

Detailed Description

HTTP methods enum and strings.

Enumeration Type Documentation

◆ Method

enum class dxx::http::Method
exportstrong
Enumerator
Invalid 

A special value that indicates a parsing error.

Variable Documentation

◆ methods_map

const std::flat_map<std::string_view, Method> dxx::http::methods_map
inlineexport
Initial value:
{
{ "GET", Method::Get },
{ "HEAD", Method::Head },
{ "POST", Method::Post },
{ "PUT", Method::Put },
{ "DELETE", Method::Delete },
{ "CONNECT", Method::Connect },
{ "OPTIONS", Method::Options },
{ "TRACE", Method::Trace },
{ "PATCH", Method::Patch },
}