Comparing version 2.0.0 to 2.1.0
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 |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
528600
2145
7
+ Addedhttp2-protocol@0.7.0(transitive)
- Removedhttp2-protocol@0.6.0(transitive)
Updatedhttp2-protocol@0.7.x