http2-protocol
Advanced tools
Comparing version 0.12.2 to 0.12.3
Version history | ||
=============== | ||
### 0.12.3 (2014-06-15) ### | ||
* Exposing API to send ALTSVC frames | ||
### 0.12.2 (2014-05-25) ### | ||
@@ -5,0 +9,0 @@ |
@@ -156,2 +156,22 @@ var assert = require('assert'); | ||
// Specify an alternate service for the origin of this stream | ||
Stream.prototype.altsvc = function altsvc(host, port, protocolID, maxAge, origin) { | ||
var stream; | ||
if (origin) { | ||
stream = 0; | ||
} else { | ||
stream = this.id; | ||
} | ||
this._pushUpstream({ | ||
type: 'ALTSVC', | ||
flags: {}, | ||
stream: stream, | ||
host: host, | ||
port: port, | ||
protocolID: protocolID, | ||
origin: origin, | ||
maxAge: maxAge | ||
}); | ||
}; | ||
// Data flow | ||
@@ -158,0 +178,0 @@ // --------- |
{ | ||
"name": "http2-protocol", | ||
"version": "0.12.2", | ||
"version": "0.12.3", | ||
"description": "A JavaScript implementation of the HTTP/2 framing layer", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -53,8 +53,8 @@ node-http2-protocol | ||
To generate a code coverage report, run `npm test --coverage` (it may be slow, be patient). | ||
Code coverage summary as of version 0.12.2: | ||
Code coverage summary as of version 0.12.3: | ||
``` | ||
Statements : 91.86% ( 1354/1474 ) | ||
Branches : 85.69% ( 563/657 ) | ||
Functions : 92.5% ( 148/160 ) | ||
Lines : 91.95% ( 1348/1466 ) | ||
Statements : 91.55% ( 1355/1480 ) | ||
Branches : 85.43% ( 563/659 ) | ||
Functions : 91.93% ( 148/161 ) | ||
Lines : 91.64% ( 1349/1472 ) | ||
``` | ||
@@ -61,0 +61,0 @@ |
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
247903
5784