#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. | |
| Connection & | connection () |
| Returns the used connection. | |
| MessageHeader & | header () |
| Returns the header of the message. | |
| const MessageHeader & | header () 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. | |