hyper 0.3.11

A modern HTTP library.
header! {
    #[doc="`Referer` header, defined in"]
    #[doc="[RFC7231](http://tools.ietf.org/html/rfc7231#section-5.5.2)"]
    #[doc=""]
    #[doc="The `Referer` [sic] header field allows the user agent to specify a"]
    #[doc="URI reference for the resource from which the target URI was obtained"]
    #[doc="(i.e., the \"referrer\", though the field name is misspelled).  A user"]
    #[doc="agent MUST NOT include the fragment and userinfo components of the"]
    #[doc="URI reference, if any, when generating the Referer field value."]
    #[doc=""]
    #[doc="# ABNF"]
    #[doc="```plain"]
    #[doc="Referer = absolute-URI / partial-URI"]
    #[doc="```"]
    // TODO: Use URL
    (Referer, "Referer") => [String]
}

bench_header!(bench, Referer, { vec![b"http://foo.com/hello:3000".to_vec()] });