REORG: http: move the HTTP/1 chunk parser to h1.{c,h}
authorWilly Tarreau <w@1wt.eu>
Thu, 21 Sep 2017 06:40:02 +0000 (08:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 22 Oct 2017 07:54:13 +0000 (09:54 +0200)
commitdb4893d6a4168601cc855114d58e9cdbe587df42
treea776ac6f7298caf5295a24716872c3e67e16f851
parent0da5b3bddce07dc4a57f5ce9dd97af9a8ab626f0
REORG: http: move the HTTP/1 chunk parser to h1.{c,h}

Functions http_parse_chunk_size(), http_skip_chunk_crlf() and
http_forward_trailers() were moved to h1.h and h1.c respectively so
that they can be called from outside. The parts that were inline
remained inline as it's critical for performance (+41% perf
difference reported in an earlier test). For now the "http_" prefix
remains in their name since they still depend on the http_msg type.
include/proto/h1.h
include/types/proto_http.h
src/h1.c
src/proto_http.c