matt-42 / silicon

A high performance, middleware oriented C++14 http web framework please use matt-42/lithium instead
http://siliconframework.org
MIT License
1.72k stars 138 forks source link

file server example required #40

Closed fnc12 closed 7 years ago

fnc12 commented 7 years ago

Hey matt-42. silicon framework is one of the coolest thing I had ever seen and used. I saw today you commited a file streaming feature. Could you please provide an example of how to implement this? Thanks

matt-42 commented 7 years ago

Thanks fnc12! Here is the example: https://github.com/matt-42/silicon/blob/master/examples/file_streaming.cc

matt-42 commented 7 years ago

Hi, In case it suits better your need, it is now possible to serve a whole directory in one shot : https://github.com/matt-42/silicon/blob/master/tests/static_file_server.cc