remove proxy handling in favor of hyper-proxy crate

This commit is contained in:
Johann Tuffe
2017-12-15 11:51:02 +08:00
parent 9cc02ab007
commit 8b1bb0b53e
6 changed files with 37 additions and 507 deletions

View File

@@ -36,7 +36,3 @@ impl<'a> PolyfillTryInto for &'a String {
pub fn to_uri(url: &Url) -> ::hyper::Uri {
url.as_str().parse().expect("a parsed Url should always be a valid Uri")
}
pub fn to_url(uri: &::hyper::Uri) -> Url {
uri.as_ref().parse().expect("reqwest Uris should only ever come from Urls")
}