]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: add a small helper to compute the amount of body bytes present
authorWilly Tarreau <w@1wt.eu>
Thu, 17 Apr 2014 18:08:17 +0000 (20:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 22 Apr 2014 21:15:28 +0000 (23:15 +0200)
commit2d8e485a7c299faf08e8ba7cb73af51fc5ca182e
tree00030db05ab2eae12a245806050792709786ef90
parentc24715e5f76d96d848ca66a93d80951a276c4cb8
MINOR: http: add a small helper to compute the amount of body bytes present

http_body_bytes() returns the number of bytes of the current message body
present in the buffer. It is compatible with being called before and after
the headers are forwarded.

This is done to centralize further ->sov changes.
include/proto/proto_http.h
src/backend.c