Re: [PATCH] HttpBody refactoring

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 04 Dec 2011 14:19:24 +1300

On 4/12/2011 11:13 a.m., Kinkie wrote:
> Hi all,
> yet another struct-turned-class.
> It is more or less a straightforward porting, with minimal interface
> extensions aimed at keeping the MemBuf data-member private.
> For simplicity's sake I've added one invariant condition: during a
> HttpBody lifetime, the MemBuf data member is never NULL.
>
> Please review

HttpBody::setMb():
* please note that protect from assign-to-self is omitted due to non-existence of copy constructor.
   If such a constructor is ever added the protection will be needed.

HttpBody.h:
* do you need to have the filename repeated and "Created On" section of copyright? we use AUTHOR: prefix instead to assign copyrights with the Squid blurb.

* packInto() docs:
    s/output operation/output operation/
    s/note:/note/

* in the hasContent() docs
    s/contents/content/
    consider using \return instead of "check" in "check whether..."

* contentSize(), content() docs
   use \return instead of just the word.

+1 from me.

Amos
Received on Sun Dec 04 2011 - 01:19:50 MST

This archive was generated by hypermail 2.2.0 : Sun Dec 04 2011 - 12:00:04 MST