Ogeon / rustful

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

Move file sending code to Response #62

Closed Ogeon closed 9 years ago

Ogeon commented 9 years ago

This moves the code for sending static files from the file module to Response. It's now more accessible, allows custom MIME types and the error type comes with a method for sending a 404 response if the file wasn't found.

This will break anything that uses rustful::file::Loader or rustful::file::Error.

Ogeon commented 9 years ago

@homu r+

homu commented 9 years ago

:pushpin: Commit f5bae9d has been approved by Ogeon

homu commented 9 years ago

:hourglass: Testing commit f5bae9d with merge dc5c5ff...

homu commented 9 years ago

:sunny: Test successful - status