nkjnm
Dependencies: MAX44000 nexpaq_mdk
Fork of LED_Demo by
mbd_os/libraries/net/https/HTTPHeader.h@1:55a6170b404f, 2016-09-17 (annotated)
- Committer:
- nexpaq
- Date:
- Sat Sep 17 16:32:05 2016 +0000
- Revision:
- 1:55a6170b404f
checking in for sharing
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nexpaq | 1:55a6170b404f | 1 | #ifndef HTTPHEADER_H |
nexpaq | 1:55a6170b404f | 2 | #define HTTPHEADER_H |
nexpaq | 1:55a6170b404f | 3 | |
nexpaq | 1:55a6170b404f | 4 | #include <string> |
nexpaq | 1:55a6170b404f | 5 | #include <map> |
nexpaq | 1:55a6170b404f | 6 | |
nexpaq | 1:55a6170b404f | 7 | enum HTTPStatus { HTTP_OK, HTTP_ERROR }; |
nexpaq | 1:55a6170b404f | 8 | |
nexpaq | 1:55a6170b404f | 9 | class HTTPSClient; |
nexpaq | 1:55a6170b404f | 10 | |
nexpaq | 1:55a6170b404f | 11 | class HTTPHeader |
nexpaq | 1:55a6170b404f | 12 | { |
nexpaq | 1:55a6170b404f | 13 | friend class HTTPSClient; |
nexpaq | 1:55a6170b404f | 14 | |
nexpaq | 1:55a6170b404f | 15 | public : |
nexpaq | 1:55a6170b404f | 16 | |
nexpaq | 1:55a6170b404f | 17 | HTTPHeader(); |
nexpaq | 1:55a6170b404f | 18 | |
nexpaq | 1:55a6170b404f | 19 | std::string getField(const std::string& name); |
nexpaq | 1:55a6170b404f | 20 | int getBodyLength(); |
nexpaq | 1:55a6170b404f | 21 | |
nexpaq | 1:55a6170b404f | 22 | private : |
nexpaq | 1:55a6170b404f | 23 | |
nexpaq | 1:55a6170b404f | 24 | HTTPStatus _status; |
nexpaq | 1:55a6170b404f | 25 | std::map<std::string, std::string> _fields; |
nexpaq | 1:55a6170b404f | 26 | }; |
nexpaq | 1:55a6170b404f | 27 | |
nexpaq | 1:55a6170b404f | 28 | |
nexpaq | 1:55a6170b404f | 29 | #endif |