feat(server): dropping a Response will write out to the underlying stream

This commit is contained in:
Sean McArthur
2015-05-06 10:40:31 -07:00
parent 7f5e0382d9
commit a9dcc59cd9
3 changed files with 195 additions and 45 deletions

View File

@@ -15,8 +15,6 @@
//! (hyper::Get, _) => StatusCode::NotFound,
//! _ => StatusCode::MethodNotAllowed
//! };
//!
//! res.start().unwrap().end().unwrap();
//! }).listen("0.0.0.0:8080").unwrap();
use std::fmt;
use std::io::{ErrorKind, BufWriter, Write};