}
void
-HttpReply::packInto(Packable * p)
+HttpReply::packInto(Packable * p) const
{
packHeadersInto(p);
body.packInto(p);
/* create memBuf, create mem-based packer, pack, destroy packer, return MemBuf */
MemBuf *
-HttpReply::pack()
+HttpReply::pack() const
{
MemBuf *mb = new MemBuf;
mb->init();
}
MemBuf *
-HttpReply::packed304Reply()
+HttpReply::packed304Reply() const
{
/* Not as efficient as skipping the header duplication,
* but easier to maintain
const char *reason, const char *ctype, int64_t clen, time_t lmt, time_t expires);
/** \return a ready to use mem buffer with a packed reply */
- MemBuf *pack();
+ MemBuf *pack() const;
/** construct a 304 reply and return it */
HttpReply *make304() const;
void hdrCacheClean();
- void packInto(Packable * p);
+ void packInto(Packable * p) const;
/* ez-routines */
/** \return construct 304 reply and pack it into a MemBuf */
- MemBuf *packed304Reply();
+ MemBuf *packed304Reply() const;
/* header manipulation */
time_t hdrExpirationTime();
/* packs request-line and headers, appends <crlf> terminator */
void
-HttpRequest::pack(Packable * p)
+HttpRequest::pack(Packable * p) const
{
assert(p);
/* pack request-line */
void swapOut(StoreEntry * e);
- void pack(Packable * p);
+ void pack(Packable * p) const;
static void httpRequestPack(void *obj, Packable *p);
bool HttpRequest::bodyNibbled() const STUB_RETVAL(false)
int HttpRequest::prefixLen() const STUB_RETVAL(0)
void HttpRequest::swapOut(StoreEntry *) STUB
-void HttpRequest::pack(Packable *) STUB
+void HttpRequest::pack(Packable *) const STUB
void HttpRequest::httpRequestPack(void *, Packable *) STUB
HttpRequest * HttpRequest::CreateFromUrlAndMethod(char *, const HttpRequestMethod &) STUB_RETVAL(NULL)
HttpRequest * HttpRequest::CreateFromUrl(char *) STUB_RETVAL(NULL)