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 d9f982a055 minimal examples: update for CSP best practices
1) update the logos to svg

2) add svg icon for strict security policy where used

3) define new vhost option flag to enforce sending CSP headers
   with the result code

4) add vhost option flag to minimal examples to
   enforce sending CSP where applicable

5) Go through all the affecting examples confirming they
   still work

6) add LWS_RECOMMENDED_MIN_HEADER_SPACE constant (currently
   2048) to clarify when we need a buffer to hold headers...
   with CSP the headers have become potentially a lot
   larger.
2018-11-21 17:03:29 +08:00
..
minimal-http-server minimal examples: update for CSP best practices 2018-11-21 17:03:29 +08:00
minimal-http-server-basicauth minimal examples: update for CSP best practices 2018-11-21 17:03:29 +08:00
minimal-http-server-dynamic minimal examples: update for CSP best practices 2018-11-21 17:03:29 +08:00
minimal-http-server-eventlib minimal examples: update for CSP best practices 2018-11-21 17:03:29 +08:00
minimal-http-server-eventlib-demos minimal examples: update for CSP best practices 2018-11-21 17:03:29 +08:00
minimal-http-server-eventlib-foreign minimal examples: update for CSP best practices 2018-11-21 17:03:29 +08:00
minimal-http-server-form-get minimal examples: update for CSP best practices 2018-11-21 17:03:29 +08:00
minimal-http-server-form-post minimal examples: update for CSP best practices 2018-11-21 17:03:29 +08:00
minimal-http-server-form-post-file minimal examples: update for CSP best practices 2018-11-21 17:03:29 +08:00
minimal-http-server-fulltext-search minimal examples: update for CSP best practices 2018-11-21 17:03:29 +08:00
minimal-http-server-mimetypes minimal examples: update for CSP best practices 2018-11-21 17:03:29 +08:00
minimal-http-server-multivhost minimal examples: update for CSP best practices 2018-11-21 17:03:29 +08:00
minimal-http-server-smp minimal examples: update for CSP best practices 2018-11-21 17:03:29 +08:00
minimal-http-server-sse minimal examples: update for CSP best practices 2018-11-21 17:03:29 +08:00
minimal-http-server-sse-ring minimal examples: update for CSP best practices 2018-11-21 17:03:29 +08:00
minimal-http-server-tls minimal examples: update for CSP best practices 2018-11-21 17:03:29 +08:00
minimal-http-server-tls-80 minimal examples: update for CSP best practices 2018-11-21 17:03:29 +08:00
README.md fulltext search 2018-10-26 13:53:28 +08:00

Example Demonstrates
minimal-http-server-basicauth Shows how to protect a mount using a password file and basic auth
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