Socket
Socket
Sign inDemoInstall

http2-proxy

Package Overview
Dependencies
0
Maintainers
1
Versions
193
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

2

package.json
{
"name": "http2-proxy",
"version": "0.2.0",
"version": "0.2.1",
"scripts": {

@@ -5,0 +5,0 @@ "dev": "nodemon --inspect=9308 --expose-http2 src",

@@ -85,4 +85,4 @@ # node-http2-proxy

- `req`: `http.IncomingMessage` or `http2.Http2ServerRequest`
- `res`: `http.ServerResponse` or `http2.Http2ServerResponse`
- `req`: [`http.IncomingMessage`](https://nodejs.org/api/http.html#http_class_http_incomingmessage) or [`http2.Http2ServerRequest`](https://nodejs.org/api/http2.html#http2_class_http2_http2serverrequest)
- `res`: [`http.ServerResponse`](https://nodejs.org/api/http.html#http_http_request_options_callback) or [`http2.Http2ServerResponse`](https://nodejs.org/api/http2.html#http2_class_http2_http2serverresponse)
- `options`: see [Options](#options)

@@ -93,5 +93,5 @@ - `onProxyError(err)`: called on error

- `req`: `http.IncomingMessage`
- `socket`: `net.Socket`
- `head`: `Buffer`
- `req`: [`http.IncomingMessage`](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
- `socket`: [`net.Socket`](https://nodejs.org/api/net.html#net_class_net_socket)
- `head`: [`Buffer`](https://nodejs.org/api/buffer.html#buffer_class_buffer)
- `options`: see [Options](#options)

@@ -102,13 +102,13 @@ - `onProxyError(err)`: called on error

- `hostname`: target hostname
- `port`: target port
- `timeout`: incoming request timeout
- `proxyTimeout`: proxy request timeout
- `hostname`: proxy [`http.request(options)`](https://nodejs.org/api/http.html#http_http_request_options_callback) target hostname
- `port`: proxy [`http.request(options)`](https://nodejs.org/api/http.html#http_http_request_options_callback) target port
- `proxyTimeout`: proxy [`http.request(options)`](https://nodejs.org/api/http.html#http_http_request_options_callback) timeout
- `proxyName`: proxy name used for **Via** header
- `timeout`: [`http.IncomingMessage`](https://nodejs.org/api/http.html#http_class_http_incomingmessage) timeout
- `onReq(req, options)`: called before proxy request
- `req`: `http.IncomingMessage` or `http2.Http2ServerRequest`
- `options`: options passed to `http.ClientRequest`
- `req`: [`http.IncomingMessage`](https://nodejs.org/api/http.html#http_class_http_incomingmessage) or [`http2.Http2ServerRequest`](https://nodejs.org/api/http2.html#http2_class_http2_http2serverrequest)
- `options`: options passed to [`http.request(options)`](https://nodejs.org/api/http.html#http_http_request_options_callback)
- `onRes(req, res)`: called before proxy response
- `req`: `http.IncomingMessage` or `http2.Http2ServerRequest`
- `res`: `http.ServerResponse` or `http2.Http2ServerResponse`
- `req`: [`http.IncomingMessage`](https://nodejs.org/api/http.html#http_class_http_incomingmessage) or [`http2.Http2ServerRequest`](https://nodejs.org/api/http2.html#http2_class_http2_http2serverrequest)
- `res`: [`http.ServerResponse`](https://nodejs.org/api/http.html#http_http_request_options_callback) or [`http2.Http2ServerResponse`](https://nodejs.org/api/http2.html#http2_class_http2_http2serverresponse)

@@ -115,0 +115,0 @@ ### License

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc