Update NamedFile documentation.

This commit is contained in:
Sergio Benitez 2016-12-23 12:02:17 -08:00
parent 586254d1e9
commit 591963106e
1 changed files with 0 additions and 5 deletions

View File

@ -76,11 +76,6 @@ impl NamedFile {
/// [ContentType::from_extension](/rocket/http/struct.ContentType.html#method.from_extension) /// [ContentType::from_extension](/rocket/http/struct.ContentType.html#method.from_extension)
/// for more information. If you would like to stream a file with a different /// for more information. If you would like to stream a file with a different
/// Content-Type than that implied by its extension, use a `File` directly. /// Content-Type than that implied by its extension, use a `File` directly.
///
/// # Failure
///
/// If reading the file fails permanently at any point during the response, an
/// `Outcome` of `Failure` is returned, and the response is terminated abrubtly.
impl<'r> Responder<'r> for NamedFile { impl<'r> Responder<'r> for NamedFile {
fn respond(self) -> Result<Response<'r>, Status> { fn respond(self) -> Result<Response<'r>, Status> {
let mut response = Response::new(); let mut response = Response::new();