MINOR: http-fetch: Add pathq sample fetch
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 2 Sep 2020 15:25:18 +0000 (17:25 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Sep 2020 09:41:47 +0000 (11:41 +0200)
commite720c32b78566ce6f5f610f6e14b09b5b774610d
tree26f377f5de023f5e71d9a40acd6bb9181f70f95f
parent312294f53def4f9057fce71f53c5a15e128b0327
MINOR: http-fetch: Add pathq sample fetch

The pathq sample fetch extract the relative URI of a request, i.e the path with
the query-string, excluding the scheme and the authority, if any. It is pretty
handy to always get a relative URI independently on the HTTP version. Indeed,
while relative URIs are common in HTTP/1.1, in HTTP/2, most of time clients use
absolute URIs.

This patch may be backported to 2.2.
doc/configuration.txt
src/http_fetch.c