【文件属性】:
文件名称:hyper-proxy-基于Hyper的应用程序的代理连接器-Rust开发
文件大小:12KB
文件格式:ZIP
更新时间:2021-05-27 19:33:10
Rust HTTP Client
hyper-proxy用于基于Hyper的应用程序的代理连接器。
文档示例使用hyper :: {Client,Request,Uri};
使用hyper :: client :: HttpConnector;
hyper-proxy用于基于Hyper的应用程序的代理连接器。
文档示例使用hyper :: {Client,Request,Uri};
使用hyper :: client :: HttpConnector;
使用Futures :: {TryFutureExt,TryStreamExt};
使用hyper_proxy :: {Proxy,ProxyConnector,Intercept};
使用typed_headers :: Credentials;
使用std :: error :: Error;
#[tokio :: main]异步fn main()->结果> {let proxy = {let proxy_uri =“ http:// my-proxy:8080” .parse()。unwrap();
let mut proxy = Proxy :: new(拦截
【文件预览】:
hyper-proxy-master
----.gitignore(32B)
----src()
--------stream.rs(4KB)
--------tunnel.rs(6KB)
--------lib.rs(17KB)
----.travis.yml(528B)
----Cargo.toml(2KB)
----README.md(3KB)
----Changelog.md(2KB)
----LICENSE-MIT.md(1KB)