by xpe · 1y ago · 0 comments
But I would probably argue that including HTTP functionality is going too far. Why? Because there are already amazing tools dedicated to this already. On the client side, see `xh` [1]. On the server side, see `miniserve` [2]. Both have approximately 7K stars on GitHub.
It seems wiser to let specialized projects focus on a particular functional area; this is better for users and less work for maintainers.
You can serve a folder of static assets like this:
http-nu :3021 '{|req| .static "www" $req.path}'