1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/minimal-examples/http-server
Andy Green 286cf4357a sul: multiple timer domains
Adapt the pt sul owner list to be an array, and define two different lists,
one that acts like before and is the default for existing users, and another
that has the ability to cooperate with systemwide suspend to restrict the
interval spent suspended so that it will wake in time for the earliest
thing on this wake-suspend sul list.

Clean the api a bit and add lws_sul_cancel() that only needs the sul as the
argument.

Add a flag for client creation info to indicate that this client connection
is important enough that, eg, validity checking it to detect silently dead
connections should go on the wake-suspend sul list.  That flag is exposed in
secure streams policy so it can be added to a streamtype with
"swake_validity": true

Deprecate out the old vhost timer stuff that predates sul.  Add a flag
LWS_WITH_DEPRECATED_THINGS in cmake so users can get it back temporarily
before it will be removed in a v4.2.

Adapt all remaining in-tree users of it to use explicit suls.
2020-06-02 08:37:10 +01:00
..
minimal-http-server cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-basicauth cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-cgi cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-custom-headers cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-deaddrop cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-dynamic cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-eventlib cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-eventlib-demos cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-eventlib-foreign cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-eventlib-smp cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-form-get cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-form-post cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-form-post-file cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-form-post-lwsac cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-fulltext-search cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-generic-sessions cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-h2-long-poll sul: multiple timer domains 2020-06-02 08:37:10 +01:00
minimal-http-server-mimetypes cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-multivhost cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-proxy cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-smp cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-sse cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-sse-ring cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-tls cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-tls-80 cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
minimal-http-server-tls-mem cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
README.md vhost info: add memory buffer cert support 2019-03-12 11:57:43 +08:00

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-mem Serves using TLS with the cert and key provided as memory buffers instead of files
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