Electroneum
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
crow Namespace Reference

Namespaces

 black_magic
 
 detail
 
 json
 
 mustache
 
 utility
 
 websocket
 

Classes

class  BaseRule
 
class  CerrLogHandler
 
struct  ci_hash
 
struct  ci_key_eq
 
class  Connection
 
struct  CookieParser
 
class  Crow
 
class  DynamicRule
 
struct  HTTPParser
 
class  ILogHandler
 
class  logger
 
class  query_string
 
struct  request
 
struct  response
 
class  Router
 
struct  routing_params
 
struct  RuleParameterTraits
 
class  Server
 
struct  SocketAdaptor
 
class  TaggedRule
 
class  Trie
 
class  WebSocketRule
 

Typedefs

using ci_map = std::unordered_multimap< std::string, std::string, ci_hash, ci_key_eq >
 
template<typename ... Middlewares>
using App = Crow< Middlewares... >
 
using SimpleApp = Crow<>
 
using tcp = asio::ip::tcp
 

Enumerations

enum  HTTPMethod {
  HTTPMethod::DELETE = 0, HTTPMethod::GET, HTTPMethod::HEAD, HTTPMethod::POST,
  HTTPMethod::PUT, HTTPMethod::CONNECT, HTTPMethod::OPTIONS, HTTPMethod::TRACE,
  HTTPMethod::Delete = 0, HTTPMethod::Get, HTTPMethod::Head, HTTPMethod::Post,
  HTTPMethod::Put, HTTPMethod::Connect, HTTPMethod::Options, HTTPMethod::Trace
}
 
enum  ParamType {
  ParamType::INT, ParamType::UINT, ParamType::DOUBLE, ParamType::STRING,
  ParamType::PATH, ParamType::MAX
}
 
enum  LogLevel {
  LogLevel::DEBUG = 0, LogLevel::INFO, LogLevel::WARNING, LogLevel::ERROR,
  LogLevel::CRITICAL, LogLevel::Debug = 0, LogLevel::Info, LogLevel::Warning,
  LogLevel::Error, LogLevel::Critical
}
 

Functions

std::string method_name (HTTPMethod method)
 
template<>
std::string routing_params::get< std::string > (unsigned index) const
 
template<typename T >
const std::string & get_header_value (const T &headers, const std::string &key)
 

Variables

static int connectionCount
 
const int RULE_SPECIAL_REDIRECT_SLASH = 1
 

Typedef Documentation

◆ App

template<typename ... Middlewares>
using crow::App = typedef Crow<Middlewares...>

◆ ci_map

using crow::ci_map = typedef std::unordered_multimap<std::string, std::string, ci_hash, ci_key_eq>

◆ SimpleApp

using crow::SimpleApp = typedef Crow<>

◆ tcp

typedef asio::ip::tcp crow::tcp

Enumeration Type Documentation

◆ HTTPMethod

enum crow::HTTPMethod
strong
Enumerator
DELETE 
GET 
HEAD 
POST 
PUT 
CONNECT 
OPTIONS 
TRACE 
Delete 
Get 
Head 
Post 
Put 
Connect 
Options 
Trace 

◆ LogLevel

enum crow::LogLevel
strong
Enumerator
DEBUG 
INFO 
WARNING 
ERROR 
CRITICAL 
Debug 
Info 
Warning 
Error 
Critical 

◆ ParamType

enum crow::ParamType
strong
Enumerator
INT 
UINT 
DOUBLE 
STRING 
PATH 
MAX 

Function Documentation

◆ get_header_value()

template<typename T >
const std::string& crow::get_header_value ( const T headers,
const std::string &  key 
)
inline

◆ method_name()

std::string crow::method_name ( HTTPMethod  method)
inline

◆ routing_params::get< std::string >()

template<>
std::string crow::routing_params::get< std::string > ( unsigned  index) const
inline

Variable Documentation

◆ connectionCount

int crow::connectionCount
static

◆ RULE_SPECIAL_REDIRECT_SLASH

const int crow::RULE_SPECIAL_REDIRECT_SLASH = 1