]> git.ipfire.org Git - thirdparty/squid.git/commit - src/http/one/TeChunkedParser.h
Refactor Http1::ChunkedCodingParser to Http1::Parser API with SBuf
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 30 Mar 2015 11:43:06 +0000 (04:43 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 30 Mar 2015 11:43:06 +0000 (04:43 -0700)
commitbe29ee33a41c010816e9ea2dfc617b85ceab1110
treed438f47d558b3e9eba89c53b1ce8af06d44f43f2
parent350ec67a9773b0b55fe0ce8e53fdaa86b28ad069
Refactor Http1::ChunkedCodingParser to Http1::Parser API with SBuf

* refactor the parse to accept SBuf input buffer using the Parser API
 and shift the MemBuf output buffer accesses to a separate API method.

* refactor the parsing steps to use Parser methods where available and
 Tokenizer for lexical tokenising.

This removes one temporary data copy and two performance regressions
from each chunked message payload processing action. It also removes
c-string operations and strign termination dependency from chunk parsing.
src/adaptation/icap/ModXact.cc
src/client_side.cc
src/client_side.h
src/http.cc
src/http/one/ChunkedCodingParser.cc
src/http/one/ChunkedCodingParser.h