feat(http): add get_ref methods to Encoder and Decoder

This commit is contained in:
Sean McArthur
2016-06-14 07:52:18 -07:00
parent 42ebb768c3
commit 766377cfe7
4 changed files with 36 additions and 7 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,