HTTP packet: Header + Content. More...
#include <http.h>
Public Member Functions | |
Packet (http::Header *header, const std::string &content) | |
void | set_keep_alive (bool=true) |
const http::Header * | header () const |
const std::string & | content () const |
std::string | dump () const |
Protected Attributes | |
boost::shared_ptr< http::Header > | header_ |
std::string | content_ |
HTTP packet: Header + Content.
void iqxmlrpc::http::Packet::set_keep_alive | ( | bool | keep_alive = true | ) |
Sets header option "connection: {keep-alive|close}". By default connection is close.