|
|
@ -54,8 +54,11 @@ namespace http { |
|
|
|
std::string to_string (); |
|
|
|
std::string to_string (); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
struct HTTPReq { |
|
|
|
struct HTTPMsg { |
|
|
|
std::map<std::string, std::string> headers; |
|
|
|
std::map<std::string, std::string> headers; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct HTTPReq : HTTPMsg { |
|
|
|
std::string version; |
|
|
|
std::string version; |
|
|
|
std::string method; |
|
|
|
std::string method; |
|
|
|
std::string uri; |
|
|
|
std::string uri; |
|
|
@ -75,8 +78,7 @@ namespace http { |
|
|
|
std::string to_string(); |
|
|
|
std::string to_string(); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
struct HTTPRes { |
|
|
|
struct HTTPRes : HTTPMsg { |
|
|
|
std::map<std::string, std::string> headers; |
|
|
|
|
|
|
|
std::string version; |
|
|
|
std::string version; |
|
|
|
std::string status; |
|
|
|
std::string status; |
|
|
|
unsigned short int code; |
|
|
|
unsigned short int code; |
|
|
|