New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

koa-http2-proxy

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-http2-proxy - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

6

CHANGELOG.md
# Changelog
## [v0.0.3](https://github.com/ontola/koa-http2-proxy/releases/tag/v0.0.3)
- add protocol option
- correctly set x-forwarded-proto header
## [v0.0.2](https://github.com/ontola/koa-http2-proxy/releases/tag/v0.0.2)
- add onUpgrade callback

@@ -5,0 +11,0 @@

2

package.json
{
"name": "koa-http2-proxy",
"version": "0.0.2",
"version": "0.0.3",
"description": "Configure http2-proxy middleware with ease for koa.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -259,8 +259,9 @@ # koa-http2-proxy

- **option.onUpgrade**: function, called before upgrading a websocket connection.
```javascript
onUpgrade: async (ctx) => {
// add session middleware to the websocket connection
// see option.app
await session(ctx, () => {});
}
onUpgrade: async ctx => {
// add session middleware to the websocket connection
// see option.app
await session(ctx, () => {});
};
```

@@ -274,2 +275,3 @@

- **option.changeOrigin**: true/false, Default: false - changes the origin of the host header to the target URL
- **option.protocol**: Agent protocol ('http' or 'https'). Defaults to 'http'
- **option.proxyTimeout**: timeout (in millis) when proxy receives no response from target

@@ -276,0 +278,0 @@ - **option.proxyName**: Proxy name used for Via header

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc