serve - A simple HTTP server for static files

Brad Anderson via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sun Mar 22 11:22:07 PDT 2015


On Sunday, 22 March 2015 at 10:33:38 UTC, Martin Nowak wrote:
> On Sunday, 22 March 2015 at 07:11:05 UTC, Suliman wrote:
>> Could you explain why pure vibed do not good for static files?
>
> It's mainly a replacement for `python -m SimpleHTTPServer`, and 
> is just a very small tool around vibe.d's serveStaticFiles, 
> which does a good job at serving static files and works much 
> more reliable than the python variant.
> https://github.com/MartinNowak/serve/blob/master/source/app.d
>
> I also added index file serving to vibe.d recently.
> https://github.com/rejectedsoftware/vibe.d/pull/902

Nice to have this. It always felt dirty using SimpleHTTPServer to 
test dlang.org locally.


More information about the Digitalmars-d-announce mailing list