pub fn from_wire<B>(addr: Option<SocketAddr>, incoming: RequestHead, body: B) -> Request<B> {
    let MessageHead { version, subject: RequestLine(method, uri), headers } = incoming;
    debug!("Request::new: addr={}, req=\"{} {} {}\"", MaybeAddr(&addr), method, uri, version);
    debug!("Request::new: headers={:?}", headers);

    Request::<B> {
        method: method,
        uri: uri,
        headers: headers,
        version: version,
        remote_addr: addr,
        body: Some(body),
        is_proxy: false,
    }
}
/// Constructs a request using a received ResponseHead and optional body
Constructs a request using a received ResponseHead and optional body
Constructs a request using a received ResponseHead and optional body
pub fn from_wire<B>(addr: Option<SocketAddr>, incoming: RequestHead, body: B) -> Request<B> {
    let MessageHead { version, subject: RequestLine(method, uri), headers } = incoming;
    debug!("Request::new: addr={}, req=\"{} {} {}\"", MaybeAddr(&addr), method, uri, version);
    debug!("Request::new: headers={:?}", headers);
    Request::<B> {
        method: method,
        uri: uri,
        headers: headers,
        version: version,
        remote_addr: addr,
        body: Some(body),
        is_proxy: false,
    }
}
pub fn from_wire < B > ( addr : Option < SocketAddr > , incoming : RequestHead , body : B ) -> Request < B > { let MessageHead { version , subject : RequestLine ( method , uri ) , headers } = incoming ; debug ! ( " \" \" " MaybeAddr ( addr ) method uri version ) ; debug ! ( " " headers ) ; Request :: < B > { method : method , uri : uri , headers : headers , version : version , remote_addr : addr , body : Some ( body ) , is_proxy : false , } }
Constructs a request using a received ResponseHead and optional body
Constructs a request using a received ResponseHead and optional body
addr
Option<SocketAddr>
incoming
RequestHead
body
B
addr
Option<SocketAddr>
incoming
RequestHead
body
B