nnl::http::Base Class Reference

Base class. More...

#include <http_base.hh>

Inheritance diagram for nnl::http::Base:

nnl::http::Request nnl::http::Response List of all members.

Public Member Functions

 Base ()
 Constructor.
 Base (std::auto_ptr< Header > &h, std::auto_ptr< Body > &b)
 Constructor.
HeaderGetHeader () const
 Get HTTP header.
BodyGetBody () const
 Get HTTP body.
void Init ()
 Calls Init() on header and body attributes (if not null).
void CreateHeader ()
 Create http header.
void CreateBody ()
 Create http body.
void ContentLength ()
 Compute content length of the body and store it in the header.

Protected Attributes

HeadermpHeader
 http header
BodympBody
 http body

Detailed Description

Base class.

Provides base class for http request and response.


Constructor & Destructor Documentation

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

Constructor.

Assigns h and b to attributes.

Parameters:
h http header
b http body


Member Function Documentation

void nnl::http::Base::CreateBody (  ) 

Create http body.

Create new body and store it in an attribute.

void nnl::http::Base::CreateHeader (  ) 

Create http header.

Create new header and store it in an attribute.

Body& nnl::http::Base::GetBody (  )  const

Get HTTP body.

Returns:
http body

Header& nnl::http::Base::GetHeader (  )  const

Get HTTP header.

Returns:
http header


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