]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - tmk_core/tool/mbed/mbed-sdk/libraries/net/https/HTTPHeader.h
Merge commit '1fe4406f374291ab2e86e95a97341fd9c475fcb8'
[max/tmk_keyboard.git] / tmk_core / tool / mbed / mbed-sdk / libraries / net / https / HTTPHeader.h
diff --git a/tmk_core/tool/mbed/mbed-sdk/libraries/net/https/HTTPHeader.h b/tmk_core/tool/mbed/mbed-sdk/libraries/net/https/HTTPHeader.h
new file mode 100644 (file)
index 0000000..63cfea1
--- /dev/null
@@ -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