Message Class Reference

#include <Pt/Http/Message.h>

HTTP message with header and body.

Inherited by Reply, and Request.

Public Member Functions

 Message (Http::Connection &conn)
 Constructs with connection to use.
 
Connectionconnection ()
 Returns the used connection.
 
MessageHeaderheader ()
 Returns the header of the message.
 
const MessageHeaderheader () const
 Returns the header of the message.
 
std::iostream & body ()
 Returns the body of the message.
 
std::size_t available () const
 Returns the number of bytes available to read.
 
std::size_t pending () const
 Returns the number of bytes pending to be written.
 
void discard ()
 Discards the message body.