MINOR: http_ext: add rfc7239_is_valid converter
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 30 Dec 2022 15:23:08 +0000 (16:23 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 27 Jan 2023 14:18:59 +0000 (15:18 +0100)
commit5c6f86f465b79536fc0ceb2a4740fbcbb6dbab71
tree0df1794fe461cac4081e4b17d06c1144822d4213
parent82faad1069e86c5e25b12ffa214b2c2d1f88c305
MINOR: http_ext: add rfc7239_is_valid converter

Adding new http converter: rfc7239_is_valid.

Takes a string representing 7239 forwarded header single value as
input and returns bool:TRUE if header is RFC compliant and
bool:FALSE otherwise.

  Example:
    acl valid req.hdr(forwarded),rfc7239_is_valid
    #input: "for=127.0.0.1;proto=http"
    #  output: TRUE
    #input: "proto=custom"
    #  output: FALSE

Depends on:
  - "MINOR: http_ext: introduce http ext converters"
doc/configuration.txt
src/http_ext.c