Web framework C++
2.0.0
Simple web framework on c++ designed to easily create web pages, etc
|
static class describes http method, version, and allow to convert it from/to string/enumeration More...
#include <http.h>
Public Types | |
enum | Method { UNDEFINED, GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH, ANY } |
enum | Version { HTTP_UNDEFINED, HTTP_0_9, HTTP_1_0, HTTP_1_1, HTTP_2_0, HTTP_ANY } |
Static Public Member Functions | |
static HTTP::Method | getMethod (std::string &str) |
static HTTP::Version | getVersion (std::string &str) |
static std::string | getVersion (HTTP::Version version) |
static std::string | getReasonPhrase (int code) |
static std::string | getMimeType (std::string &extension) |
static class describes http method, version, and allow to convert it from/to string/enumeration
HTTP class describes Method, Version, ReasonPhrase of code in http
enum HTTP::Method |
enum HTTP::Version |
Flags to define combinations of HTTP Version
Enumerator | |
---|---|
HTTP_UNDEFINED | |
HTTP_0_9 | |
HTTP_1_0 | |
HTTP_1_1 | |
HTTP_2_0 | |
HTTP_ANY |
|
static |
Parse input string to http method
str | input string |
|
static |
Get mime-type of file by its extension
extension | extension of file without a dot |
|
static |
Serialize status code to string
code | http status code |
|
static |
Parse input string to http version
str | input string |
|
static |