Electroneum
Classes | Namespaces | Enumerations | Functions
common.h File Reference
#include <vector>
#include <string>
#include <stdexcept>
#include <iostream>
#include "utility.h"
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  crow::routing_params
 

Namespaces

 crow
 

Enumerations

enum  crow::HTTPMethod {
  crow::HTTPMethod::DELETE = 0, crow::HTTPMethod::GET, crow::HTTPMethod::HEAD, crow::HTTPMethod::POST,
  crow::HTTPMethod::PUT, crow::HTTPMethod::CONNECT, crow::HTTPMethod::OPTIONS, crow::HTTPMethod::TRACE,
  crow::HTTPMethod::Delete = 0, crow::HTTPMethod::Get, crow::HTTPMethod::Head, crow::HTTPMethod::Post,
  crow::HTTPMethod::Put, crow::HTTPMethod::Connect, crow::HTTPMethod::Options, crow::HTTPMethod::Trace
}
 
enum  crow::ParamType {
  crow::ParamType::INT, crow::ParamType::UINT, crow::ParamType::DOUBLE, crow::ParamType::STRING,
  crow::ParamType::PATH, crow::ParamType::MAX
}
 

Functions

std::string crow::method_name (HTTPMethod method)
 
template<>
std::string crow::routing_params::get< std::string > (unsigned index) const
 
constexpr crow::HTTPMethod operator"" _method (const char *str, size_t)
 

Function Documentation

◆ operator"" _method()

constexpr crow::HTTPMethod operator"" _method ( const char *  str,
size_t   
)