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
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
..
client ah: custom headers for h1 2019-03-10 08:02:02 +08:00
compression clean: general whitespace cleanup 2018-11-23 08:47:56 +08:00
server ah: custom headers for h1 2019-03-10 08:02:02 +08:00
header.c sse: drop the ah when the sse connection starts 2019-01-30 14:38:11 +08:00
lextable-strings.h plat: refactor private headers and split files 2018-06-20 16:41:27 +08:00
lextable.h refactor role ops 2018-04-11 13:39:42 +08:00
minilex.c refactor role ops 2018-04-11 13:39:42 +08:00
private.h ah: custom headers for h1 2019-03-10 08:02:02 +08:00