Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/process1024/node-proxy
node 实现代理服务
https://github.com/process1024/node-proxy
Last synced: 19 days ago
JSON representation
node 实现代理服务
- Host: GitHub
- URL: https://github.com/process1024/node-proxy
- Owner: process1024
- Created: 2019-03-12T06:20:30.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T03:21:30.000Z (over 1 year ago)
- Last Synced: 2023-03-08T08:33:40.879Z (over 1 year ago)
- Language: JavaScript
- Size: 245 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-proxy
node 实现代理服务### 用express本地起node,直接请求node的接口,node转发请求到 需要代理的地址。
### 目前这个用了两种方式实现,一个是借助http-proxy-middelware中间件代理,这个实际上也是webpack-dev-server实现代理的方式。
### 还有一个是用pipe,将它把浏览器的请求数据传给 request 客户端。### 实际上代码非常简单,这里作为整理学习使用。