MINOR: http-htx: Support different methods to look for header names
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2020 05:42:42 +0000 (07:42 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2020 09:07:00 +0000 (11:07 +0200)
commit8dd33e13a507e4f8a4b30d7bbfaf9d39ec64ffac
tree9607cabdc46ea8a6f7580e3ddbfc26b300cb76fe
parent16032ab44a7179d3a2783a83d9992755d21a9873
MINOR: http-htx: Support different methods to look for header names

It is now possible to use different matching methods to look for header names in
an HTTP message:

 * The exact match. It is the default method. http_find_header() uses this
   method. http_find_str_header() is an alias.

 * The prefix match. It evals the header names starting by a prefix.
   http_find_pfx_header() must be called to use this method.

 * The suffix match. It evals the header names ending by a suffix.
   http_find_sfx_header() must be called to use this method.

 * The substring match. It evals the header names containing a string.
   http_find_sub_header() must be called to use this method.

 * The regex match. It evals the header names matching a regular expression.
   http_match_header() must be called to use this method.
include/proto/http_htx.h
src/http_htx.c