mirror of
https://github.com/rwf2/Rocket.git
synced 2024-12-28 13:22:38 +00:00
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'. |
||
---|---|---|
.. | ||
src | ||
static | ||
Cargo.toml |