Merge pull request #827 from hyperium/enc-dec-get-ref

add get_ref methods to Encoder and Decoder
This commit is contained in:
Sean McArthur
2016-06-14 20:18:28 +02:00
committed by GitHub
5 changed files with 36 additions and 298 deletions

View File

@@ -2,7 +2,6 @@
//!
//! These are requests that a `hyper::Server` receives, and include its method,
//! target URI, headers, and message body.
//use std::net::SocketAddr;
use version::HttpVersion;
use method::Method;
@@ -16,7 +15,6 @@ pub fn new(incoming: RequestHead) -> Request {
debug!("{:#?}", headers);
Request {
//remote_addr: addr,
method: method,
uri: uri,
headers: headers,