]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/HttpBody.cc
2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 /* DEBUG: section 56 HTTP Message Body */
15 HttpBody::HttpBody() : mb(new MemBuf
)
29 /* set body by absorbing mb */
31 HttpBody::setMb(MemBuf
* mb_
)
34 /* note: protection against assign-to-self is not needed
35 * as MemBuf doesn't have a copy-constructor. If such a constructor
36 * is ever added, add such protection here.
38 mb
= mb_
; /* absorb */
42 HttpBody::packInto(Packable
* p
) const
46 if (mb
->contentSize())
47 p
->append(mb
->content(), mb
->contentSize());