Web framework C++
2.0.0
Simple web framework on c++ designed to easily create web pages, etc
Main Page
Classes
Files
File List
File Members
include
http.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
5
11
class
HTTP
{
12
public
:
16
enum
Method
{
17
UNDEFINED
,
18
GET
,
19
HEAD
,
20
POST
,
21
PUT
,
22
DELETE
,
23
CONNECT
,
24
OPTIONS
,
25
TRACE
,
26
PATCH
,
27
ANY
28
};
29
33
enum
Version
{
34
HTTP_UNDEFINED
,
35
HTTP_0_9
,
36
HTTP_1_0
,
37
HTTP_1_1
,
38
HTTP_2_0
,
39
HTTP_ANY
40
};
41
50
static
HTTP::Method
getMethod
(std::string & str);
51
60
static
HTTP::Version
getVersion
(std::string & str);
61
70
static
std::string
getVersion
(
HTTP::Version
version);
71
80
static
std::string
getReasonPhrase
(
int
code);
81
90
static
std::string
getMimeType
(std::string & extension);
91
};
HTTP::POST
Definition:
http.h:20
HTTP::HTTP_UNDEFINED
Definition:
http.h:34
HTTP::HTTP_1_1
Definition:
http.h:37
HTTP::PUT
Definition:
http.h:21
HTTP::HEAD
Definition:
http.h:19
HTTP::CONNECT
Definition:
http.h:23
HTTP::TRACE
Definition:
http.h:25
HTTP::HTTP_ANY
Definition:
http.h:39
HTTP::OPTIONS
Definition:
http.h:24
HTTP::getMethod
static HTTP::Method getMethod(std::string &str)
HTTP::GET
Definition:
http.h:18
HTTP::HTTP_0_9
Definition:
http.h:35
HTTP::UNDEFINED
Definition:
http.h:17
HTTP::Version
Version
Definition:
http.h:33
HTTP::DELETE
Definition:
http.h:22
HTTP::getMimeType
static std::string getMimeType(std::string &extension)
HTTP
static class describes http method, version, and allow to convert it from/to string/enumeration ...
Definition:
http.h:11
HTTP::HTTP_2_0
Definition:
http.h:38
HTTP::HTTP_1_0
Definition:
http.h:36
HTTP::getReasonPhrase
static std::string getReasonPhrase(int code)
HTTP::PATCH
Definition:
http.h:26
HTTP::getVersion
static HTTP::Version getVersion(std::string &str)
HTTP::ANY
Definition:
http.h:27
HTTP::Method
Method
Definition:
http.h:16
Generated by
1.8.11