Web framework C++  2.0.0
Simple web framework on c++ designed to easily create web pages, etc
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 {
18  GET,
20  POST ,
21  PUT,
28  };
29 
33  enum Version {
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 };
Definition: http.h:20
Definition: http.h:34
Definition: http.h:37
Definition: http.h:21
Definition: http.h:19
Definition: http.h:23
Definition: http.h:25
Definition: http.h:39
Definition: http.h:24
static HTTP::Method getMethod(std::string &str)
Definition: http.h:18
Definition: http.h:35
Definition: http.h:17
Version
Definition: http.h:33
Definition: http.h:22
static std::string getMimeType(std::string &extension)
static class describes http method, version, and allow to convert it from/to string/enumeration ...
Definition: http.h:11
Definition: http.h:38
Definition: http.h:36
static std::string getReasonPhrase(int code)
Definition: http.h:26
static HTTP::Version getVersion(std::string &str)
Definition: http.h:27
Method
Definition: http.h:16