Ogeon / rustful

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

Fixed size responses #45

Closed Ogeon closed 9 years ago

Ogeon commented 9 years ago

Implement support for responses with a fixed size. This includes adding send methods to Response and renaming ResponseWriter to Chunked. A new response type, called Raw, is also introduced, which makes it possible to stream data with a known length, such as large files.

This change does also include a change in how file::Loader changes data, some more documentation for the response module and general API polish for responses.

This will probably break every project. I'm surprised if it doesn't.

Closes #37

Ogeon commented 9 years ago

@homu r+

homu commented 9 years ago

:pushpin: Commit ed09412 has been approved by Ogeon

homu commented 9 years ago

:hourglass: Testing commit ed09412 with merge d831083...

homu commented 9 years ago

:sunny: Test successful - status