1.2.2 • Published 1 year ago
keq-proxy v1.2.2
keq-proxy
Change the request url, just like a proxy.
Usage
import { request } from 'keq'
import proxy from 'keq-proxy'
// Host Proxy
request.use(proxy('example.com', 'expect.com'))
// OR
request.use(proxy(/http:\/\/example.com/, 'http://expect.com'))
Contributing & Development
If there is any doubt, it is very welcome to discuss the issue together. Please read Contributor Covenant Code of Conduct and CONTRIBUTING.