egg-http-proxy-plus:更智能的的egg代理中间件,解决了代理文件上传接口的问题

时间:2024-05-29 16:04:20
【文件属性】:

文件名称:egg-http-proxy-plus:更智能的的egg代理中间件,解决了代理文件上传接口的问题

文件大小:13KB

文件格式:ZIP

更新时间:2024-05-29 16:04:20

JavaScript

egg-http-proxy-plus 支持转发文件上传接口,支持自定义匹配方法,ctx透传 为egg配置代理中间件。 使用 。 安装 # use npm $ npm i egg-http-proxy-plus --save # use yarn $ yarn add egg-http-proxy-plus 用法 // {app_root}/config/plugin.js exports . httpProxyPlus = { enable : true , package : 'egg-http-proxy-plus' , } ; 配置 代理/api向http://www.example.org请求: // {app_root}/config/config.default.js exports . httpProxyPlus = { '/api' : 'http://w


【文件预览】:
egg-http-proxy-plus-master
----.github()
--------workflows()
----.eslintrc.js(174B)
----.prettierignore(20B)
----.npmignore(29B)
----app.js(80B)
----.travis.yml(179B)
----config()
--------config.default.js(155B)
----LICENSE(1KB)
----test()
--------fixtures()
--------http-proxy.test.js(1KB)
----README.md(3KB)
----index.d.ts(464B)
----appveyor.yml(267B)
----.editorconfig(119B)
----.gitignore(416B)
----.prettierrc.js(83B)
----app()
--------middleware()
----.eslintignore(35B)
----package.json(2KB)
----.autod.conf.js(450B)

网友评论