]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: sample/http_proto: Add new type called method
authorThierry FOURNIER <tfournier@exceliance.fr>
Tue, 17 Dec 2013 00:10:10 +0000 (01:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 17 Mar 2014 17:06:07 +0000 (18:06 +0100)
commitd437314979e275d8aee79f1df53a67632bc407ac
tree3d4a817be5294a7c62b89ff0bbb60edfcacfced7
parent7654c9ff44b8baa90d23d8b01a0fc5158d7a19ad
MEDIUM: sample/http_proto: Add new type called method

The method are actuelly stored using two types. Integer if the method is
known and string if the method is not known. The fetch is declared as
UINT, but in some case it can provides STR.

This patch create new type called METH. This type contain interge for
known method and string for the other methods. It can be used with
automatic converters.

The pattern matching can expect method.

During the free or prune function, http_meth pettern is freed. This
patch initialise the freed pointer to NULL.
include/proto/proto_http.h
include/types/proto_http.h
include/types/sample.h
src/proto_http.c
src/sample.c