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.
 
std::iostream & body ()
 Returns the body of the message.
 
void discard ()
 Discards the message body.
 
MessageHeaderheader ()
 Returns the header of the message.
 
const MessageHeaderheader () const
 Returns the header of the message.