The main namespace of the library. In this namespace is defined the most important classes and functions of the library. More...
Namespaces | |
| namespace | multipart |
Encapsulates anything related to processing and organizing multipart/xyz messages. | |
| namespace | mustache |
| In this namespace is defined most of the functions and classes related to template rendering. | |
| namespace | websocket |
| Namespace that includes the Connection class and connection struct. Useful for WebSockets connection. | |
Classes | |
| struct | bad_request |
| class | BaseRule |
| A base class for all rules. More... | |
| class | Blueprint |
| A blueprint can be considered a smaller section of a Crow app, specifically where the router is concerned. More... | |
| class | CatchallRule |
| class | CerrLogHandler |
| struct | ci_hash |
| Hashing function for ci_map (unordered_multimap). More... | |
| struct | ci_key_eq |
| Equals function for ci_map (unordered_multimap). More... | |
| class | Connection |
| An HTTP connection. More... | |
| struct | CookieParser |
| struct | CORSHandler |
| CORSHandler is a global middleware for setting CORS headers. More... | |
| struct | CORSRules |
| Used for tuning CORS policies. More... | |
| class | Crow |
| The main server application class. More... | |
| class | DynamicRule |
| A rule that can change its parameters during runtime. More... | |
| struct | FileStore |
| struct | http_parser |
| struct | http_parser_settings |
| struct | HTTPParser |
A wrapper for nodejs/http-parser. More... | |
| struct | ILocalMiddleware |
| Local middleware should extend ILocalMiddleware. More... | |
| class | ILogHandler |
| struct | InMemoryStore |
| InMemoryStore stores all entries in memory. More... | |
| class | logger |
| class | query_string |
A class to represent any data coming after the ? in the request URL into key-value pairs. More... | |
| struct | request |
| An HTTP request. More... | |
| struct | response |
| HTTP response. More... | |
| struct | returnable |
| An abstract class that allows any other class to be returned by a handler. More... | |
| class | Router |
| Handles matching requests to existing rules and upgrade requests. More... | |
| struct | routing_handle_result |
| struct | RuleParameterTraits |
| Allows the user to assign parameters using functions. More... | |
| class | Server |
| struct | SessionMiddleware |
| struct | SocketAdaptor |
| A wrapper for the asio::ip::tcp::socket and asio::ssl::stream. More... | |
| struct | SSLAdaptor |
| class | TaggedRule |
| Default rule created when CROW_ROUTE is called. More... | |
| struct | TCPAcceptor |
| class | Trie |
| A search tree. More... | |
| struct | UnixSocketAcceptor |
| struct | UnixSocketAdaptor |
| struct | UTF8 |
| class | WebSocketRule |
| A rule dealing with websockets. More... | |
Typedefs | |
| using | ssl_context_t = asio::ssl::context |
| template<typename... Middlewares> | |
| using | App = Crow< Middlewares... > |
| Alias of Crow<Middlewares...>. Useful if you want a instance of an Crow application that require Middlewares. | |
| using | SimpleApp = Crow<> |
| Alias of Crow<>. Useful if you want a instance of an Crow application that doesn't require of Middlewares. | |
| using | ci_map = std::unordered_multimap< std::string, std::string, ci_hash, ci_key_eq > |
| using | error_code = asio::error_code |
| using | tcp = asio::ip::tcp |
| typedef struct http_parser | http_parser |
| typedef struct http_parser_settings | http_parser_settings |
| typedef int(* | http_data_cb) (http_parser *, const char *at, size_t length) |
| typedef int(* | http_cb) (http_parser *) |
| using | stream_protocol = asio::local::stream_protocol |
| using | StaticRule = TaggedRule<> |
Functions | |
| const std::string | crlf ("\r\n") |
| std::string | method_name (HTTPMethod method) |
| enum state | parse_url_char (enum state s, const char ch, http_parser *parser, const char *url_mark, const char *p) |
| size_t | http_parser_execute (http_parser *parser, const http_parser_settings *settings, const char *data, size_t len) |
| void | http_parser_init (http_parser *parser) |
| const char * | http_errno_name (enum http_errno err) |
| const char * | http_errno_description (enum http_errno err) |
| int | http_body_is_final (const struct http_parser *parser) |
| void | http_parser_set_max_header_size (uint32_t size) |
| void | sanitize_header_value (std::string &s) |
| Remove CR (\r) and LF ( ) characters from a header name or value to prevent header injection. | |
| const std::string & | get_header_value (const ci_map &headers, const std::string &key) |
| Find and return the value associated with the key. (returns an empty string if nothing is found) | |
| int | qs_strncmp (const char *s, const char *qs, size_t n) |
| size_t | qs_parse (char *qs, char *qs_kv[], size_t qs_kv_size, bool parse_url) |
| int | qs_decode (char *qs) |
| char * | qs_k2v (const char *key, char *const *qs_kv, size_t qs_kv_size, int nth) |
| char * | qs_scanvalue (const char *key, const char *qs, char *val, size_t val_len) |
| std::unique_ptr< std::pair< std::string, std::string > > | qs_dict_name2kv (const char *dict_name, char *const *qs_kv, size_t qs_kv_size, int nth=0) |
The main namespace of the library. In this namespace is defined the most important classes and functions of the library.
Within this namespace, the Crow class, Router class, Connection class, and other are defined.