userver: userver/server/http/http_method.hpp File Reference
Loading...
Searching...
No Matches
http_method.hpp File Reference

Detailed Description

List of HTTP methods.

Definition in file http_method.hpp.

Go to the source code of this file.

#include <string>
#include <fmt/core.h>
#include <userver/utils/fmt_compat.hpp>
+ Include dependency graph for http_method.hpp:
+ This graph shows which files directly or indirectly include this file:

Classes

struct  fmt::formatter<::server::http::HttpMethod >
 

Namespaces

namespace  server::http
 Server parts of the HTTP protocol implementation.
 

Enumerations

enum class  server::http::HttpMethod {
  kDelete ,
  kGet ,
  kHead ,
  kPost ,
  kPut ,
  kPatch ,
  kConnect ,
  kOptions ,
  kUnknown
}
 List of HTTP methods. More...
 

Functions

const std::string & server::http::ToString (HttpMethod method) noexcept
 Convert HTTP method enum value to string.
 
HttpMethod server::http::HttpMethodFromString (std::string_view method_str)
 Convert HTTP method string to enum value.