Re:Show HN: Nano-web, a low latency one binary webserver des...
by busfahrer on Monday March 25, 2024 @01:55PM
(#39819365)
Depending on the environment I'm in I either use `npx serve` or `python3 -m http.server` (aka `python2 -m SimpleHTTPServer`)
Re:Show HN: Nano-web, a low latency one binary webserver des...
by rmbyrro on Monday March 25, 2024 @03:43PM
(#39820502)
Python http server is not intended for public exposure. It's meant for local usage in testing / debugging contexts.
Re:Show HN: Nano-web, a low latency one binary webserver des...
by egeozcan on Monday March 25, 2024 @03:33PM
(#39820414)
Caddy is amazing for simple static hosting AND more, if one needs it. With sqlite, postgres, D3.js and FFmpeg, it's up there in my software love list.
Re:Show HN: Nano-web, a low latency one binary webserver des...
by qwerty456127 on Wednesday March 27, 2024 @12:42AM
(#39835763)
> It is not minimal, but the size difference is barely noticeable.
Minimality is not about size, it's about reducing the attack surface.
> There are a few go projects that fit your description, none of them very popular, probably because they end up being a 100-line wrapper around http frameworks.
Indeed. Everyone can write their own but dependencies will make its attack surface enormous and performance will probably be mediocre at best.
serve also comes to mind. If you have node installed, `npx serve .` does exactly that.
There are a few go projects that fit your description, none of them very popular, probably because they end up being a 100-line wrapper around http frameworks.
[1] https://caddyserver.com/