Socket
Socket
Sign inDemoInstall

http2

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http2 - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

9

HISTORY.md
Version history
===============
### 2.1.0 (2013-11-10) ###
* Upgrade to the latest draft: [draft-ietf-httpbis-http2-07][draft-07]
* [Tarball](https://github.com/molnarg/node-http2/archive/node-http2-2.1.0.tar.gz)
[draft-07]: http://tools.ietf.org/html/draft-ietf-httpbis-http2-07
### 2.0.0 (2013-11-09) ###
* Splitting out everything that is not related to negotiating HTTP2 or the node-like HTTP API.
These live in separate module form now on:
These live in separate module from now on:
[http2-protocol](https://github.com/molnarg/node-http2-protocol).

@@ -9,0 +16,0 @@ * The only backwards incompatible change: the `Endpoint` class is not exported anymore. Use the

26

lib/http.js

@@ -158,3 +158,3 @@ // Public API

// [1]: http://tools.ietf.org/html/draft-ietf-httpbis-http2-04
var implementedVersion = 'HTTP-draft-06/2.0';
var implementedVersion = 'HTTP-draft-07/2.0';

@@ -510,3 +510,3 @@ // When doing NPN/ALPN negotiation, HTTP/1.1 is used as fallback

// * The ":scheme" header field includes the scheme portion of the target URI
// * The ":host" header field includes the authority portion of the target URI
// * The ":authority" header field includes the authority portion of the target URI
// * The ":path" header field includes the path and query parts of the target URI.

@@ -519,6 +519,6 @@ // This field MUST NOT be empty; URIs that do not contain a path component MUST include a value

// an invalid value as a stream error of type PROTOCOL_ERROR.
this.method = this._checkSpecialHeader(':method', headers[':method']);
this.scheme = this._checkSpecialHeader(':scheme', headers[':scheme']);
this.host = this._checkSpecialHeader(':host' , headers[':host'] );
this.url = this._checkSpecialHeader(':path' , headers[':path'] );
this.method = this._checkSpecialHeader(':method' , headers[':method']);
this.scheme = this._checkSpecialHeader(':scheme' , headers[':scheme']);
this.host = this._checkSpecialHeader(':authority', headers[':authority'] );
this.url = this._checkSpecialHeader(':path' , headers[':path'] );

@@ -609,8 +609,9 @@ // * Host header is included in the headers object for backwards compatibility.

':scheme': (options.protocol && options.protocol.slice(0, -1)) || this._requestHeaders[':scheme'],
':host': options.hostname || options.host || this._requestHeaders[':host'],
':authority': options.hostname || options.host || this._requestHeaders[':authority'],
':path': options.path
}, options.headers);
this._log.info({ method: promise[':method'], scheme: promise[':scheme'], host: promise[':host'],
path: promise[':path'], headers: options.headers }, 'Promising push stream');
this._log.info({ method: promise[':method'], scheme: promise[':scheme'],
authority: promise[':authority'], path: promise[':path'],
headers: options.headers }, 'Promising push stream');

@@ -838,7 +839,8 @@ var pushStream = this.stream.promise(promise);

headers[':method'] = options.method;
headers[':host'] = options.host;
headers[':authority'] = options.host;
headers[':path'] = options.path;
this._log.info({ scheme: headers[':scheme'], method: headers[':method'], host: headers[':host'],
path: headers[':path'], headers: (options.headers || {}) }, 'Sending request');
this._log.info({ scheme: headers[':scheme'], method: headers[':method'],
authority: headers[':authority'], path: headers[':path'],
headers: (options.headers || {}) }, 'Sending request');
this.stream.headers(headers);

@@ -845,0 +847,0 @@ this.headersSent = true;

{
"name": "http2",
"version": "2.0.0",
"version": "2.1.0",
"description": "An HTTP/2 client and server implementation",

@@ -10,3 +10,3 @@ "main": "lib/index.js",

"dependencies": {
"http2-protocol": "0.6.x"
"http2-protocol": "0.7.x"
},

@@ -13,0 +13,0 @@ "devDependencies": {

node-http2
==========
An HTTP/2 ([draft-ietf-httpbis-http2-06](http://tools.ietf.org/html/draft-ietf-httpbis-http2-06))
An HTTP/2 ([draft-ietf-httpbis-http2-07](http://tools.ietf.org/html/draft-ietf-httpbis-http2-76))
client and server implementation for node.js.

@@ -6,0 +6,0 @@

Sorry, the diff of this file is not supported yet

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