This package has been deprecated

Author message:

Wrong name, look for @svenardo/koa-proxy instead

koa3-proxy

1.0.0 • Public • Published

Koa 3 Proxy

Installation

Get it from npm with npm install --save koa3-proxy

Testing

const koaProxy = require('koa3-proxy');
const Router = require('koa-router');
const router = new Router();


router.get("/octocat*", async ctx => 
        ctx.body = await koaProxy(ctx, {
			target:       'https://api.github.com/users',
			changeOrigin: true
		})
			.then(res => res)
			.catch(err => handleError(err))
	)

License

ISC

Readme

Keywords

Package Sidebar

Install

npm i koa3-proxy

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • svenanders