[PATCH] HttpHdrSc c++ refactoring

From: Kinkie <gkinkie_at_gmail.com>
Date: Fri, 28 Oct 2011 17:55:01 +0200

Hi all,
  as a followup to the HttpHdrCc work, the attached patch (with 20
lines of context) c++-refactors the HttpHdrSc class.
It doesn't attempt to optimize parsing - not worth the hassle, even
though the current parser does type trickery which I would really like
to get rid of, but for surrogate-cotrol I don't believe it's worth the
hassle.
It does get rid of a string-copy by implementing a strnrchr() function
- one less TODO in the code.

It has been run-tested (as a standard forward proxy, so not all
code-paths may have been explored, but it didn't crash).

-- 
    /kinkie

Received on Fri Oct 28 2011 - 15:55:10 MDT

This archive was generated by hypermail 2.2.0 : Sat Oct 29 2011 - 12:00:08 MDT