]> git.donarmstrong.com Git - qmk_firmware.git/blob - tool/mbed/mbed-sdk/libraries/net/https/HTTPHeader.h
Squashed 'tmk_core/' changes from 7967731..b9e0ea0
[qmk_firmware.git] / 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