http: target parsing improvement 37/42137/5
authorMatus Fabian <[email protected]>
Sun, 12 Jan 2025 21:18:56 +0000 (22:18 +0100)
committerMatus Fabian <[email protected]>
Tue, 21 Jan 2025 18:47:28 +0000 (13:47 -0500)
commit98d1264fcdb81c1213e1d0ac02098a3f6673631a
tree71fa5fe3da48681c64419bc6ceab24e2f442fb42
parent98028dd4c475f8929cf07a87114e857bfc6bda93
http: target parsing improvement

Make it http version neutral, since h2 and h3 use 3 pseudo-headers.
Added scheme, target_authority_offset and target_authority_len
to http_msg_data_t, target_form removed.
Http transport now validate if correct form of request target
is received, so now we are also able to receive requests with
absolute-form target in server apps like http_static.
As bonus, unformat is not longer used to parse IP addresses.

Type: improvement

Change-Id: I369f77e2639c43cc1244d91f883c526eb88af63e
Signed-off-by: Matus Fabian <[email protected]>
14 files changed:
extras/hs-test/http_test.go
extras/hs-test/infra/connect_udp_client.go
extras/hs-test/proxy_test.go
src/plugins/hs_apps/http_cli.c
src/plugins/hs_apps/http_client.c
src/plugins/hs_apps/http_client_cli.c
src/plugins/hs_apps/http_tps.c
src/plugins/hs_apps/proxy.c
src/plugins/hs_apps/vcl/vcl_test_protos.c
src/plugins/http/http.c
src/plugins/http/http.h
src/plugins/http/http_plugin.rst
src/plugins/http/test/http_test.c
src/plugins/http_static/static_server.c