#include <http_base.hh>
Inheritance diagram for nnl::http::Base:

Public Member Functions | |
| Base () | |
| Constructor. | |
| Base (std::auto_ptr< Header > &h, std::auto_ptr< Body > &b) | |
| Constructor. | |
| Header & | GetHeader () const |
| Get HTTP header. | |
| Body & | GetBody () 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 | |
| Header * | mpHeader |
| http header | |
| Body * | mpBody |
| http body | |
Provides base class for http request and response.
Constructor.
Assigns h and b to attributes.
| h | http header | |
| b | http body |
| 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.
| Header& nnl::http::Base::GetHeader | ( | ) | const |
Get HTTP header.
1.4.7