--- a/src/HTTPServer.h Thu Apr 21 00:43:54 2022 +0200
+++ b/src/HTTPServer.h Sat Apr 30 02:49:50 2022 +0200
@@ -37,21 +37,25 @@
public:
- class Header {
+ /** Attribute-value pair – header, cookie, GET or POST parameter */
+ class AVP {
public:
std::string name;
std::string value;
- Header(std::string name, std::string value) : name(name), value(value) {
+ AVP(std::string name, std::string value) : name(name), value(value) {
}
- virtual ~Header() {
+ virtual ~AVP() {
}
};
class Request {
public:
- std::vector<Header> header;
+ std::vector<AVP> header;
+ std::vector<AVP> cookie;
+ std::vector<AVP> getParameter;
+ std::vector<AVP> postParameter;
std::string host;
std::string method;
std::string url;
@@ -60,7 +64,8 @@
class Response {
public:
- std::vector<Header> header;
+ std::vector<AVP> header;
+ std::vector<AVP> cookie;
uint16_t code;
std::string body;
};