All Projects → popomore → Koa Proxy

popomore / Koa Proxy

Proxy middleware for koa

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Koa Proxy

Foxman
🍥 an extensible mock server
Stars: ✭ 76 (-65.61%)
Mutual labels:  koa, proxy
Gracejs
A Nodejs BFF framework, build with koa2(基于koa2的标准前后端分离框架)
Stars: ✭ 1,302 (+489.14%)
Mutual labels:  koa, proxy
Koa Proxies
a [email protected] proxy middleware
Stars: ✭ 125 (-43.44%)
Mutual labels:  koa, proxy
Websafety
Simple and powerful web filter for HTTP and HTTPS traffic
Stars: ✭ 208 (-5.88%)
Mutual labels:  proxy
Ss Net
共享shadowsocks主机
Stars: ✭ 209 (-5.43%)
Mutual labels:  proxy
Openapi Backend
Build, Validate, Route, Authenticate and Mock using OpenAPI
Stars: ✭ 216 (-2.26%)
Mutual labels:  koa
Proxybroker
Proxy [Finder | Checker | Server]. HTTP(S) & SOCKS 🎭
Stars: ✭ 2,767 (+1152.04%)
Mutual labels:  proxy
Prise
A .NET Plugin Framework.
Stars: ✭ 207 (-6.33%)
Mutual labels:  proxy
Styx
Programmable, asynchronous, event-based reverse proxy for JVM.
Stars: ✭ 218 (-1.36%)
Mutual labels:  proxy
Skipper
An HTTP router and reverse proxy for service composition, including use cases like Kubernetes Ingress
Stars: ✭ 2,606 (+1079.19%)
Mutual labels:  proxy
Koa Webpack Middleware
webpack dev&hot middleware for koa2
Stars: ✭ 215 (-2.71%)
Mutual labels:  koa
Nobibi
一款基于Next.js+mongo的轻量级开源社区(open community by Next.js & mongo)
Stars: ✭ 209 (-5.43%)
Mutual labels:  koa
Graphql Rest Proxy
Turn your REST API into GraphQL - A Proxy Server that pipes request from GraphQL to REST with GraphQL DSL, performant nested children, mutations, input types, and more.
Stars: ✭ 218 (-1.36%)
Mutual labels:  proxy
Umajs
Umajs,easy-to-use framework base on Typescript
Stars: ✭ 209 (-5.43%)
Mutual labels:  koa
Tor Socks Proxy
🐳 Tiny Docker(🤏 10MB) image as 🧅 Tor SOCKS5 proxy 🛡
Stars: ✭ 218 (-1.36%)
Mutual labels:  proxy
Kubefwd
Bulk port forwarding Kubernetes services for local development.
Stars: ✭ 2,713 (+1127.6%)
Mutual labels:  proxy
Goku Api Gateway
A Powerful HTTP API Gateway in pure golang!Goku API Gateway (中文名:悟空 API 网关)是一个基于 Golang开发的微服务网关,能够实现高性能 HTTP API 转发、服务编排、多租户管理、API 访问权限控制等目的,拥有强大的自定义插件系统可以自行扩展,并且提供友好的图形化配置界面,能够快速帮助企业进行 API 服务治理、提高 API 服务的稳定性和安全性。
Stars: ✭ 2,773 (+1154.75%)
Mutual labels:  proxy
Graphql Demo
🎉Koa + GraphQL + Apollo-Server demo
Stars: ✭ 215 (-2.71%)
Mutual labels:  koa
Hackers Tool Kit
Its a framework filled with alot of options and hacking tools you use directly in the script from brute forcing to payload making im still adding more stuff i now have another tool out called htkl-lite its hackers-tool-kit just not as big and messy to see updates check on my instagram @tuf_unkn0wn or if there are any problems message me on instagram
Stars: ✭ 211 (-4.52%)
Mutual labels:  proxy
Doxycannon
A poorman's proxycannon and botnet, using docker, ovpn files, and a dante socks5 proxy
Stars: ✭ 216 (-2.26%)
Mutual labels:  proxy

koa-proxy is been transfered to edorivai

koa-proxy Build Status Coverage Status

Proxy middleware for koa


Install

$ npm install koa-proxy -S

Usage

When you request http://localhost:3000/index.js, it will fetch http://alicdn.com/index.js and return.

var koa = require('koa');
var proxy = require('koa-proxy');
var app = koa();
app.use(proxy({
  host: 'http://alicdn.com'
}));
app.listen(3000);

You can proxy a specified url.

app.get('index.js', proxy({
  url: 'http://alicdn.com/index.js'
}));

You can specify a key/value object that can map your request's path to the other.

app.get('index.js', proxy({
  host: 'http://alicdn.com',
  map: {
    'index.js': 'index-1.js'
  }
}));

You can specify a function that can map your request's path to the desired destination.

app.get('index.js', proxy({
  host: 'http://alicdn.com',
  map: function(path) { return 'public/' + path; }
}));

You can specify match criteria to restrict proxy calls to a given path.

app.use(proxy({
  host:  'http://alicdn.com', // proxy alicdn.com...
  match: /^\/static\//        // ...just the /static folder
}));

Or you can use match to exclude a specific path.

app.use(proxy({
  host:  'http://alicdn.com',     // proxy alicdn.com...
  match: /^(?!\/dontproxy\.html)/ // ...everything except /dontproxy.html
}));

Proxy won't send cookie to real server, you can set jar = true to send it.

app.use(proxy({
  jar: true,
}));

Proxy won't send 'foo' and 'bar' headers to real server, or recieve 'jar-jar' from real server.

app.use(proxy({
  suppressRequestHeaders: ['foo','bar'], // case-insensitive
  suppressResponseHeaders: ['jar-jar'] // case-insensitive
}));

LICENSE

Copyright (c) 2014 popomore. Licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].