HTTPHeader.h 444 B

1234567891011121314151617181920212223242526272829
  1. #ifndef HTTPHEADER_H
  2. #define HTTPHEADER_H
  3. #include <string>
  4. #include <map>
  5. enum HTTPStatus { HTTP_OK, HTTP_ERROR };
  6. class HTTPSClient;
  7. class HTTPHeader
  8. {
  9. friend class HTTPSClient;
  10. public :
  11. HTTPHeader();
  12. std::string getField(const std::string& name);
  13. int getBodyLength();
  14. private :
  15. HTTPStatus _status;
  16. std::map<std::string, std::string> _fields;
  17. };
  18. #endif