#include <http_body.hh>
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 | |
| nnl::http::Body::Body | ( | ) |
Constructor.
Calls Init().
| void nnl::http::Body::Append | ( | const std::string & | data | ) |
Append data to http body.
| data | data to append to mBody |
| std::string& nnl::http::Body::Compose | ( | std::string & | buffer | ) |
Compose http body.
Append buffer to mBody.
| buffer | data to append |
| const std::string& nnl::http::Body::Get | ( | ) | const |
Get http body.
| 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.
| data | data to parse | |
| pHeader | http header parsed before this body |
1.4.7