mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-16 00:12:43 +00:00
* HTTP.h : add base class HTTPMsg
This commit is contained in:
parent
f6103d3841
commit
50ff0d251a
8
HTTP.h
8
HTTP.h
@ -54,8 +54,11 @@ namespace http {
|
||||
std::string to_string ();
|
||||
};
|
||||
|
||||
struct HTTPReq {
|
||||
struct HTTPMsg {
|
||||
std::map<std::string, std::string> headers;
|
||||
};
|
||||
|
||||
struct HTTPReq : HTTPMsg {
|
||||
std::string version;
|
||||
std::string method;
|
||||
std::string uri;
|
||||
@ -75,8 +78,7 @@ namespace http {
|
||||
std::string to_string();
|
||||
};
|
||||
|
||||
struct HTTPRes {
|
||||
std::map<std::string, std::string> headers;
|
||||
struct HTTPRes : HTTPMsg {
|
||||
std::string version;
|
||||
std::string status;
|
||||
unsigned short int code;
|
||||
|
Loading…
Reference in New Issue
Block a user