mirror of https://github.com/rwf2/Rocket.git
f7cd455558
Previously, 'NamedFile::open()' called a synchronous I/O method. This commit changes it to instead use tokio's 'File' for async I/O. To allow this to change, the 'Handler' trait was fixed to enforce that the lifetime of '&self', the reference to the handler, outlives the incoming request. As a result, futures returned from a handler can hold a reference to 'self'. |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml | ||
build.rs |