]> git.kaiwu.me - haproxy.git/commit
MEDIUM: http: make http-request rules processing return a verdict instead of a rule
authorWilly Tarreau <w@1wt.eu>
Mon, 28 Apr 2014 22:13:29 +0000 (00:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Apr 2014 22:46:01 +0000 (00:46 +0200)
commit0b7483385e1c84c59e7ccf9418c5126cfb670939
tree0642c244758982ce0559110c1ed25070fcb3705f
parentae3c01022622da4c1733a15f3f01cb8b9e82b382
MEDIUM: http: make http-request rules processing return a verdict instead of a rule

Till now we used to return a pointer to a rule, but that makes it
complicated to later add support for registering new actions which
may fail. For example, the redirect may fail if the response is too
large to fit into the buffer.

So instead let's return a verdict. But we needed the pointer to the
last rule to get the address of a redirect and to get the realm used
by the auth page. So these pieces of code have moved into the function
and they produce a verdict.
include/types/proto_http.h
src/proto_http.c