proxy_http 0.1.2

An HTTP proxy server that supports forwarding requests to upstream proxies. / 一个支持转发请求到上游代理的 HTTP 代理服务器。
Documentation
1
2
3
4
5
6
7
8
9
10
请让 ./src/main.rs 可以运行

请修改 ./src/lib.rs 基于 tokio 实现一个高性能的 http 代理库

接口类似

proxy_http::run(fetch, *PORT, *USER, *PASSWORD).await? ;

当收到请求的时候,参考 ./tests/main.rs 中, 用 fetch 获取响应并返回,
如果 fetch 出错,返回 500