From 65031ca3502e0c27780be847fd97c112546741a9 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sat, 18 Nov 2023 00:56:04 +0100 Subject: Send HTTP headers to payload callback Even if libweb already parses some common headers, such as Content-Length, some users might find it interesting to inspect which headers were received from a request. Since HTTP/1.1 does not define a limit on the number of maximum headers a client can send, for security reasons a maximum value must be provided by the user. Any extra headers shall be then discarded by libweb. An example application showing this new feature is also provided. --- examples/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/Makefile') diff --git a/examples/Makefile b/examples/Makefile index b26a13a..672f209 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,6 +1,7 @@ .POSIX: all: \ + headers \ hello \ html @@ -10,6 +11,9 @@ clean: FORCE: +headers: FORCE + +cd headers && $(MAKE) + hello: FORCE +cd hello && $(MAKE) -- cgit v1.2.3