mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-23 00:00:06 +01:00

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
1.6 KiB
1.6 KiB
Example | Demonstrates |
---|---|
minimal-http-server-basicauth | Shows how to protect a mount using a password file and basic auth |
minimal-http-server-custom-headers | Shows how to query custom headers that lws doesn't already know |
minimal-http-server-deaddrop | Shows how to use the deaddrop drag and drop file upload + sharing plugin |
minimal-http-server-dynamic | Serves both static and dynamically generated http content |
minimal-http-server-eventlib-foreign | Demonstrates integrating lws with a foreign event library |
minimal-http-server-eventlib-demos | Using the demo plugins with event libraries |
minimal-http-server-eventlib | Same as minimal-http-server but works with a supported event library |
minimal-http-server-form-get | Process a GET form |
minimal-http-server-form-post-file | Process a multipart POST form with file transfer |
minimal-http-server-form-post | Process a POST form (no file transfer) |
minimal-http-server-fulltext-search | Demonstrates using lws Fulltext Search |
minimal-http-server-mimetypes | Shows how to add support for additional mimetypes at runtime |
minimal-http-server-multivhost | Same as minimal-http-server but three different vhosts |
minimal-http-server-proxy | Reverse Proxy |
minimal-http-server-smp | Multiple service threads |
minimal-http-server-sse-ring | Server Side Events with ringbuffer and threaded event sources |
minimal-http-server-sse | Simple Server Side Events |
minimal-http-server-tls-80 | Serves a directory over http/1 or http/2 with TLS (SSL), custom 404 handler, redirect to https on port 80 |
minimal-http-server-tls | Serves a directory over http/1 or http/2 with TLS (SSL), custom 404 handler |
minimal-http-server | Serves a directory over http/1, custom 404 handler |