3 ms·
If you control the client, you can make webservers that are very small indeed. Here's one we use for local testing, where we know the client will be libcurl an
by rwmj 2y ago
If you control the client, you can make webservers that are very small indeed. Here's one we use for local testing, where we know the client will be libcurl and know exactly what requests will be made: https://gitlab.com/nbdkit/nbdkit/-/blob/master/tests/web-server.c?ref_type=heads https://gitlab.com/nbdkit/nbdkit/-/blob/master/tests/web-ser... Basically 600 LoC. It would be completely insecure if exposed to the internet, but (by design) it can only serve over Unix domain sockets.
- johnisgood 2y agoNeat!