Rocket/core/lib/src/response
Sergio Benitez f7cd455558 Make 'NamedFile' async. Fix 'Handler' trait.
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'.
2020-07-11 09:24:30 -07:00
..
content.rs Make 'Responder' trait sync; fix its lifetimes. 2020-07-11 09:24:29 -07:00
debug.rs Make 'Responder' trait sync; fix its lifetimes. 2020-07-11 09:24:29 -07:00
flash.rs Make 'Responder' trait sync; fix its lifetimes. 2020-07-11 09:24:29 -07:00
mod.rs Make 'Responder' trait sync; fix its lifetimes. 2020-07-11 09:24:29 -07:00
named_file.rs Make 'NamedFile' async. Fix 'Handler' trait. 2020-07-11 09:24:30 -07:00
redirect.rs Make 'Responder' trait sync; fix its lifetimes. 2020-07-11 09:24:29 -07:00
responder.rs Make 'Responder' trait sync; fix its lifetimes. 2020-07-11 09:24:29 -07:00
response.rs Make 'Responder' trait sync; fix its lifetimes. 2020-07-11 09:24:29 -07:00
status.rs Make 'Responder' trait sync; fix its lifetimes. 2020-07-11 09:24:29 -07:00
stream.rs Make 'Responder' trait sync; fix its lifetimes. 2020-07-11 09:24:29 -07:00