#include <http_response.hh>
Inheritance diagram for nnl::http::Response:
Public Member Functions | |
Response () | |
Constructor. | |
Response (std::auto_ptr< Header > &h, std::auto_ptr< Body > &b) | |
Constructor. | |
virtual | ~Response () |
Destructor. | |
bool | Parse (const std::string &data) |
Parse response. | |
Protected Member Functions | |
virtual void | ResponseCompleteImpl ()=0 |
Called upon response complete. | |
Private Member Functions | |
void | ResponseComplete () |
Called upon response complete. | |
Private Attributes | |
std::string | mBuffer |
buffer used when parsing |
Implements HTTP response.
Constructor.
h | http header | |
b | http body |
bool nnl::http::Response::Parse | ( | const std::string & | data | ) |
Parse response.
Take data from
data | and append to mBuffer, then parse. | |
data | data to parse |
void nnl::http::Response::ResponseComplete | ( | ) | [private] |
Called upon response complete.
Called from Parse().
virtual void nnl::http::Response::ResponseCompleteImpl | ( | ) | [protected, pure virtual] |
Called upon response complete.
Called from ResponseComplete().