|
Squid Web Cache master
|
#include <HttpBody.h>
Public Member Functions | |
| HttpBody () | |
| void | set (const SBuf &newContent) |
| void | packInto (Packable *) const |
| void | clear () |
| clear the HttpBody content | |
| bool | hasContent () const |
| size_t | contentSize () const |
| const char * | content () const |
Private Member Functions | |
| HttpBody & | operator= (const HttpBody &) |
| HttpBody (const HttpBody &) | |
Private Attributes | |
| SBuf | raw_ |
Representation of a short predetermined message
This class is useful to represent short HTTP messages, whose contents are known in advance, e.g. error messages
Definition at line 21 of file HttpBody.h.
|
inline |
Definition at line 24 of file HttpBody.h.
|
private |
|
inline |
Definition at line 35 of file HttpBody.h.
References SBuf::clear(), and raw_.
Referenced by HttpReply::clean().
|
inline |
Definition at line 44 of file HttpBody.h.
References raw_, and SBuf::rawContent().
Referenced by packInto(), and CacheManager::start().
|
inline |
Definition at line 41 of file HttpBody.h.
References SBuf::length(), and raw_.
Referenced by packInto().
|
inline |
Definition at line 38 of file HttpBody.h.
References SBuf::length(), and raw_.
| void HttpBody::packInto | ( | Packable * | p | ) | const |
output the HttpBody contents into the supplied container
Definition at line 14 of file HttpBody.cc.
References Packable::append(), assert, content(), contentSize(), and size.
Referenced by HttpReply::packInto().
|
inline |
Definition at line 26 of file HttpBody.h.
References raw_.
Referenced by ErrorState::BuildHttpReply(), and clientReplyContext::traceReply().
|
private |
Definition at line 50 of file HttpBody.h.
Referenced by clear(), content(), contentSize(), hasContent(), and set().