Ogeon / rustful

[OUTDATED] A light HTTP framework for Rust
https://docs.rs/rustful
Apache License 2.0
862 stars 52 forks source link

Add helper for file loading #38

Closed Ogeon closed 9 years ago

Ogeon commented 9 years ago

Adds a helper structure for loading and sending raw files to the client. It's accompanied by a catalogue of MIME types and a function for converting a file extension to a Mime.

Closes #26

Ogeon commented 9 years ago

I'm thinking about making the mime catalogue optional using a Cargo feature. It's relatively large and may be perceived as bloat if not used. I may also wait for it to be requested, since every new feature makes it harder to test.

Ogeon commented 9 years ago

I will not put it behind a feature right away. Anyone who would like to be able to turn it off can submit a pull request or an issue :)

Ogeon commented 9 years ago

@homu r+

homu commented 9 years ago

:pushpin: Commit d54e246 has been approved by Ogeon

homu commented 9 years ago

:hourglass: Testing commit d54e246 with merge 4a3139b...

homu commented 9 years ago

:sunny: Test successful - status