aboutsummaryrefslogtreecommitdiff
path: root/examples/Makefile
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-11-18 00:56:04 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-11-18 01:03:12 +0100
commit65031ca3502e0c27780be847fd97c112546741a9 (patch)
tree31c8ac5bb815baf5e4b63bde3af9076eb30a30ed /examples/Makefile
parentb71a6174e12b4709acaf8bc151938ba12d2a54f6 (diff)
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.
Diffstat (limited to 'examples/Makefile')
-rw-r--r--examples/Makefile4
1 files changed, 4 insertions, 0 deletions
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)