]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: http: add a small helper to compute how far to rewind to find headers
authorWilly Tarreau <w@1wt.eu>
Thu, 17 Apr 2014 18:18:08 +0000 (20:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 22 Apr 2014 21:15:28 +0000 (23:15 +0200)
commit211cdece7963c956d2f9447f9ae1eddd96fc497d
tree3840a4ed26bb6a7158b7dfedb4acf1243a1ee51b
parent2d8e485a7c299faf08e8ba7cb73af51fc5ca182e
MEDIUM: http: add a small helper to compute how far to rewind to find headers

http_hdr_rewind() returns the number of bytes to rewind before buf->p to
find the beginning of headers. At the moment it's not exact as it still
relies on buf->o, assuming that no other data from a past message were
pending there, but it's what was done till there.

The purpose is to centralize further ->sov changes aiming at avoiding
to rely on buf->o.
include/proto/proto_http.h
src/backend.c
src/proto_http.c