Skip to content

keq-request/keq-proxy

Repository files navigation

keq-proxy

version downloads license dependencies coveralls

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.