#ifndef HTTP_H #define HTTP_H #include #include #include typedef std::map HTTPHeaders; class HTTPRequest { public: std::string type, path, httpver; HTTPHeaders headers; HTTPRequest(std::istream& is); }; class HTTPResponse { public: HTTPHeaders headers; int code; std::string httpver, status; HTTPResponse(); void add_header(std::string key, std::string value); void write_headers(std::ostream& os); }; #endif