nnl::http::Body Class Reference

Http body. More...

#include <http_body.hh>

List of all members.

Public Member Functions

 Body ()
 Constructor.
void Init ()
 Initialize object.
bool Parse (std::string &data, const Header &pHeader)
 Parse http body.
std::string & Compose (std::string &buffer)
 Compose http body.
void Append (const std::string &data)
 Append data to http body.
const std::string & Get () const
 Get http body.

Private Attributes

std::string mBody
 body buffer


Detailed Description

Http body.


Constructor & Destructor Documentation

nnl::http::Body::Body (  ) 

Constructor.

Calls Init().


Member Function Documentation

void nnl::http::Body::Append ( const std::string &  data  ) 

Append data to http body.

Parameters:
data data to append to mBody

std::string& nnl::http::Body::Compose ( std::string &  buffer  ) 

Compose http body.

Append buffer to mBody.

Parameters:
buffer data to append
Returns:
mBody

const std::string& nnl::http::Body::Get (  )  const

Get http body.

Returns:
mBody

void nnl::http::Body::Init (  ) 

Initialize object.

Clears the mBody.

bool nnl::http::Body::Parse ( std::string &  data,
const Header pHeader 
)

Parse http body.

Take data from data, append it to mBody and parse mBody. On exit data contains the data not parsed.

Parameters:
data data to parse
pHeader http header parsed before this body
Returns:
true upon parse complete, false otherwise


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