nnl::http::Response Class Reference

HTTP response class. More...

#include <http_response.hh>

Inheritance diagram for nnl::http::Response:

nnl::http::Base List of all members.

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

Detailed Description

HTTP response class.

Implements HTTP response.


Constructor & Destructor Documentation

nnl::http::Response::Response ( std::auto_ptr< Header > &  h,
std::auto_ptr< Body > &  b 
)

Constructor.

Parameters:
h http header
b http body


Member Function Documentation

bool nnl::http::Response::Parse ( const std::string &  data  ) 

Parse response.

Take data from

Parameters:
data and append to mBuffer, then parse.
data data to parse
Returns:
true if response is complete, false otherwise

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().


The documentation for this class was generated from the following file:
Generated on Tue Jun 19 10:31:48 2012 for nnl by  doxygen 1.4.7