17 #ifndef HTTPRESPONSE_HPP_
18 #define HTTPRESPONSE_HPP_
39 static const std::uint8_t HTTP_VERSION_OFFSET = 9;
41 void parseResponse(
const char *data,
size_t len);
45 std::map<std::string, std::string> header_;
HttpResponse(const char *data, std::size_t len)
virtual int getStatusCode() const
virtual SharedBody getBody() const
virtual std::string getHeaderField(const std::string &name) const
std::pair< boost::shared_array< std::uint8_t >, size_t > SharedBody