mbed-os
Fork of mbed-os by
features/unsupported/net/https/HTTPHeader.h@1:3deb71413561, 2017-07-20 (annotated)
- Committer:
- xuaner
- Date:
- Thu Jul 20 14:26:57 2017 +0000
- Revision:
- 1:3deb71413561
- Parent:
- 0:f269e3021894
mbed_os
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
elessair | 0:f269e3021894 | 1 | #ifndef HTTPHEADER_H |
elessair | 0:f269e3021894 | 2 | #define HTTPHEADER_H |
elessair | 0:f269e3021894 | 3 | |
elessair | 0:f269e3021894 | 4 | #include <string> |
elessair | 0:f269e3021894 | 5 | #include <map> |
elessair | 0:f269e3021894 | 6 | |
elessair | 0:f269e3021894 | 7 | enum HTTPStatus { HTTP_OK, HTTP_ERROR }; |
elessair | 0:f269e3021894 | 8 | |
elessair | 0:f269e3021894 | 9 | class HTTPSClient; |
elessair | 0:f269e3021894 | 10 | |
elessair | 0:f269e3021894 | 11 | class HTTPHeader |
elessair | 0:f269e3021894 | 12 | { |
elessair | 0:f269e3021894 | 13 | friend class HTTPSClient; |
elessair | 0:f269e3021894 | 14 | |
elessair | 0:f269e3021894 | 15 | public : |
elessair | 0:f269e3021894 | 16 | |
elessair | 0:f269e3021894 | 17 | HTTPHeader(); |
elessair | 0:f269e3021894 | 18 | |
elessair | 0:f269e3021894 | 19 | std::string getField(const std::string& name); |
elessair | 0:f269e3021894 | 20 | int getBodyLength(); |
elessair | 0:f269e3021894 | 21 | |
elessair | 0:f269e3021894 | 22 | private : |
elessair | 0:f269e3021894 | 23 | |
elessair | 0:f269e3021894 | 24 | HTTPStatus _status; |
elessair | 0:f269e3021894 | 25 | std::map<std::string, std::string> _fields; |
elessair | 0:f269e3021894 | 26 | }; |
elessair | 0:f269e3021894 | 27 | |
elessair | 0:f269e3021894 | 28 | |
elessair | 0:f269e3021894 | 29 | #endif |