summaryrefslogtreecommitdiffstats
path: root/WebServer/WebServer.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--WebServer/WebServer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/WebServer/WebServer.h b/WebServer/WebServer.h
index a78fc44e4..90b38d407 100644
--- a/WebServer/WebServer.h
+++ b/WebServer/WebServer.h
@@ -36,6 +36,14 @@ class Socket;
class SocketServer;
class webserver {
public:
+ struct formdata
+ {
+ std::string name_;
+ std::string filename_;
+ std::string content_type_;
+ std::string value_;
+ };
+
struct http_request {
http_request()
@@ -56,6 +64,7 @@ public:
std::string user_agent_;
int content_length_;
std::string content_type_;
+ std::vector< formdata > multipart_formdata_;
/* status_: used to transmit server's error status, such as
o 202 OK