mbed-os
Fork of mbed-os by
features/unsupported/net/https/HTTPHeader.h
- Committer:
- xuaner
- Date:
- 2017-07-20
- Revision:
- 1:3deb71413561
- Parent:
- 0:f269e3021894
File content as of revision 1:3deb71413561:
#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