8 #ifndef CPP_UTILS_HTTPPARSER_H_ 
    9 #define CPP_UTILS_HTTPPARSER_H_ 
   18     std::string getBody();
 
   19     std::string 
getHeader(
const std::string& name);
 
   20     std::map<std::string, std::string> getHeaders();
 
   21     std::string getMethod();
 
   23     std::string getVersion();
 
   24     std::string getStatus();
 
   25     std::string getReason();
 
   27     void parse(std::string message);
 
   34     std::string m_version;
 
   38     std::map<std::string, std::string> m_headers;
 
   40     void parseRequestLine(std::string& line);
 
   41     void parseStatusLine(std::string& line);
 
bool hasHeader(const std::string &name)
Determine if we have a header of the given name. 
Definition: HttpParser.cpp:182
Encapsulate a socket. 
Definition: Socket.h:62
std::string getHeader(const std::string &name)
Retrieve the value of the named header. 
Definition: HttpParser.cpp:141
void parseResponse(std::string message)
Parse a response message. 
Definition: HttpParser.cpp:275
Definition: HttpParser.h:14