1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/minimal-examples/http-server
Andy Green 7baf400017 evlib: allow custom evlib ops
Adapt the event lib support slighly so we can pass an event lib "plugin"
header in at context creation time, and direct all event loop handling to
go via that.

This can then be lightly adapted to interface to an existing custom event
loop cleanly, without the problems of EXTERNAL_POLL.

The external loop must consult with us about the max wait timeout as shown
in the added minimal-http-server-eventlib-custom example.

The example shows a complete implementation working with a custom poll()
loop cleanly while only needing 5 ops in the custom event lib handler.
2021-06-07 08:17:49 +01:00
..
minimal-http-server cmake: latest cmake shows dep warnings for scripts < 2.8.12 2020-12-06 19:44:54 +00:00
minimal-http-server-basicauth cmake: latest cmake shows dep warnings for scripts < 2.8.12 2020-12-06 19:44:54 +00:00
minimal-http-server-cgi cmake: latest cmake shows dep warnings for scripts < 2.8.12 2020-12-06 19:44:54 +00:00
minimal-http-server-custom-headers type comparisons: fixes 2021-01-05 10:56:38 +00:00
minimal-http-server-deaddrop type comparisons: fixes 2021-01-05 10:56:38 +00:00
minimal-http-server-dynamic http: parser: straighten out %00 legality 2021-04-10 09:21:33 +01:00
minimal-http-server-eventlib cmake: latest cmake shows dep warnings for scripts < 2.8.12 2020-12-06 19:44:54 +00:00
minimal-http-server-eventlib-custom evlib: allow custom evlib ops 2021-06-07 08:17:49 +01:00
minimal-http-server-eventlib-demos cmake: latest cmake shows dep warnings for scripts < 2.8.12 2020-12-06 19:44:54 +00:00
minimal-http-server-eventlib-foreign Fault injection 2021-04-05 10:55:04 +01:00
minimal-http-server-eventlib-smp type comparisons: fixes 2021-01-05 10:56:38 +00:00
minimal-http-server-form-get http: parser: straighten out %00 legality 2021-04-10 09:21:33 +01:00
minimal-http-server-form-post minimal: h-s-form-post: only delete the spa once 2021-01-11 08:12:46 +00:00
minimal-http-server-form-post-file type comparisons: fixes 2021-01-05 10:56:38 +00:00
minimal-http-server-form-post-lwsac cmake: latest cmake shows dep warnings for scripts < 2.8.12 2020-12-06 19:44:54 +00:00
minimal-http-server-fulltext-search cmake: latest cmake shows dep warnings for scripts < 2.8.12 2020-12-06 19:44:54 +00:00
minimal-http-server-h2-long-poll type comparisons: fixes 2021-01-05 10:56:38 +00:00
minimal-http-server-mimetypes cmake: latest cmake shows dep warnings for scripts < 2.8.12 2020-12-06 19:44:54 +00:00
minimal-http-server-multivhost vhost_destroy: refactor 2021-01-22 12:31:15 +00:00
minimal-http-server-proxy cmake: latest cmake shows dep warnings for scripts < 2.8.12 2020-12-06 19:44:54 +00:00
minimal-http-server-smp mbedtls: server: enforce client cert check when vhost requires 2021-05-23 14:58:07 +01:00
minimal-http-server-sse type comparisons: fixes 2021-01-05 10:56:38 +00:00
minimal-http-server-sse-ring type comparisons: fixes 2021-01-05 10:56:38 +00:00
minimal-http-server-tls TCP_FASTOPEN 2021-05-25 08:13:13 +01:00
minimal-http-server-tls-80 cmake: latest cmake shows dep warnings for scripts < 2.8.12 2020-12-06 19:44:54 +00:00
minimal-http-server-tls-mem cmake: latest cmake shows dep warnings for scripts < 2.8.12 2020-12-06 19:44:54 +00: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