1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib/roles/http/server
Andy Green 986bb37c88 ah: custom headers for h1
Until now lws only parses headers it knows at build-time from its
prebuilt lexical analyzer.

This adds an on-by-default cmake option and a couple of apis
to also store and query "custom", ie, unknown-to-lws headers.

A minimal example is also provided.

At the moment it only works on h1, h2 support needs improvements
to the hpack implementation.

Since it bloats ah memory usage compared to without it if custom
headers are present, the related code and ah footprint can be
disabled with the cmake option LWS_WITH_CUSTOM_HEADERS, but it's
on by default normally.  ESP32 platform disables it.

https://github.com/warmcat/libwebsockets/pull/1499
2019-03-10 08:02:02 +08:00
..
access-log.c http: log ws upgrades 2019-03-10 08:02:02 +08:00
fops-zip.c refactor: core code in lib/core and private-libwebsockets.h to core/private.h 2018-05-03 10:49:36 +08:00
lejp-conf.c ws: setting default protocol index to an illegal index disables default ws binding 2019-03-10 08:02:02 +08:00
lws-spa.c clean: general whitespace cleanup 2018-11-23 08:47:56 +08:00
parsers.c ah: custom headers for h1 2019-03-10 08:02:02 +08:00
ranges.c codacy: minor fixes 2018-10-13 08:16:27 +08:00
rewrite.c clean: general whitespace cleanup 2018-11-23 08:47:56 +08:00
server.c http: log ws upgrades 2019-03-10 08:02:02 +08:00