http: return more than data from server app 65/41165/14
authorMatus Fabian <[email protected]>
Thu, 20 Jun 2024 15:08:26 +0000 (17:08 +0200)
committerFlorin Coras <[email protected]>
Tue, 23 Jul 2024 15:22:34 +0000 (15:22 +0000)
commit8ca6ce6fe1e65c8b57b9c0910dfd1243db0e49b9
treeda860f9fdeab192a4f90cc96c55bace986fef2a8
parent1f870c9bdc4f2ce4076b1faeb42878a41125fd76
http: return more than data from server app

Server app could return headers in front of body/data buffer.
Offers apis for building and serialization of headers section.
HTTP layer now only add Date, Server and Content-Lengths headers,
rest is up to app. Well known header names are predefined.

Type: improvement

Change-Id: If778bdfc9acf6b0d11a48f0a745a3a56c96c2436
Signed-off-by: Matus Fabian <[email protected]>
15 files changed:
extras/hs-test/http_test.go
extras/hs-test/infra/utils.go
src/plugins/hs_apps/http_cli.c
src/plugins/hs_apps/http_tps.c
src/plugins/http/http.c
src/plugins/http/http.h
src/plugins/http/http_content_types.h [new file with mode: 0644]
src/plugins/http/http_header_names.h [new file with mode: 0644]
src/plugins/http/http_plugin.rst
src/plugins/http_static/builtinurl/json_urls.c
src/plugins/http_static/http_cache.c
src/plugins/http_static/http_static.h
src/plugins/http_static/static_server.c
src/plugins/mactime/builtins.c
src/plugins/prom/prom.c