1 Star 0 Fork 0

于新海 / http-proxy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

http-proxy

介绍

http 代理程序,解决如下问题

  1. 跨域
  2. 日志

简单启动:

npm run server --allowHeaders=token --proxy=http://target.com
node index.js --allowHeaders=token --proxy=http://target.com

对于一些非标准输出,对请求进行加工

node  index.js --port=5050  --eachLog=true --encoding=gbk --origin=https://c.m.lwljuyang.net --allowHeaders=token --proxy=http://localhost:8080  \
 --requestFilter=" if(req.headers.datacompressed =='True' ) req.headers['content-encoding'] = 'gzip'; " \
 --responseFilter=" if(resp.headers.datacompressed =='true' ) resp.headers['content-encoding'] = 'gzip';

测试数据,待完成。 改写服务器端数据,待完成。

空文件

简介

http 代理,解决跨域, 调试本地程序 展开 收起
JavaScript
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/imnewsea/http-proxy.git
git@gitee.com:imnewsea/http-proxy.git
imnewsea
http-proxy
http-proxy
master

搜索帮助