mbed-os

Fork of mbed-os by erkin yucel

Revision:
0:f269e3021894
diff -r 000000000000 -r f269e3021894 features/unsupported/net/https/HTTPHeader.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/features/unsupported/net/https/HTTPHeader.h	Sun Oct 23 15:10:02 2016 +0000
@@ -0,0 +1,29 @@
+#ifndef HTTPHEADER_H
+#define HTTPHEADER_H
+
+#include <string>
+#include <map>
+
+enum HTTPStatus { HTTP_OK, HTTP_ERROR };
+
+class HTTPSClient;
+
+class HTTPHeader
+{
+    friend class HTTPSClient;
+
+    public :
+    
+        HTTPHeader();
+        
+        std::string getField(const std::string& name);  
+        int getBodyLength();
+        
+    private :
+    
+        HTTPStatus _status;
+        std::map<std::string, std::string> _fields;
+};
+
+
+#endif