]> git.friedersdorff.com Git - max/tmk_keyboard.git/blob - 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
1 #ifndef HTTPHEADER_H
2 #define HTTPHEADER_H
3
4 #include <string>
5 #include <map>
6
7 enum HTTPStatus { HTTP_OK, HTTP_ERROR };
8
9 class HTTPSClient;
10
11 class HTTPHeader
12 {
13     friend class HTTPSClient;
14
15     public :
16     
17         HTTPHeader();
18         
19         std::string getField(const std::string& name);  
20         int getBodyLength();
21         
22     private :
23     
24         HTTPStatus _status;
25         std::map<std::string, std::string> _fields;
26 };
27
28
29 #endif