]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MAJOR] http: implement body parser
authorWilly Tarreau <w@1wt.eu>
Sun, 27 Dec 2009 21:54:55 +0000 (22:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 27 Dec 2009 21:54:55 +0000 (22:54 +0100)
commitd98cf93395fe5a982afc3eee66526057d49420da
tree4cfe66430f209d03592de8860e7645469c182082
parent5d881d0f3ac1e391ee45a03ab8df43a028e21165
[MAJOR] http: implement body parser

The body parser will be used in close and keep-alive modes. It follows
the stream to keep in sync with both the request and the response message.
Both chunked transfer-coding and content-length are supported according to
RFC2616.

The multipart/byterange encoding has not yet been implemented and if not
seconded by any of the two other ones, will be forwarded till the close,
as requested by the specification.

Both the request and the response analysers converge into an HTTP_MSG_DONE
state where it will be possible to force a close (option forceclose) or to
restart with a fresh new transaction and maintain keep-alive.

This change is important. All tests are OK but any possible behaviour
change with "option httpclose" might find its root here.
include/proto/proto_http.h
include/types/buffers.h
src/proto_http.c
src/session.c