gecko-dev/testing/xpcshell/node-http2/node_modules/http2-protocol
2014-06-25 17:33:17 -07:00
..
example Bug 965869 (part 2) - HTTP/2 draft10 tests. r=mcmanus 2014-03-26 10:58:11 -07:00
lib Bug 1026609 - HTTP/2 draft 13 part 2 - test updates. r=mcmanus 2014-06-25 17:33:17 -07:00
test Bug 1026609 - HTTP/2 draft 13 part 2 - test updates. r=mcmanus 2014-06-25 17:33:17 -07:00
.gitignore Bug 993937 (part 2) - Update unit tests for http2 draft11. r=mcmanus 2014-04-29 18:46:01 -07:00
HISTORY.md Bug 1026609 - HTTP/2 draft 13 part 2 - test updates. r=mcmanus 2014-06-25 17:33:17 -07:00
LICENSE
package.json Bug 1026609 - HTTP/2 draft 13 part 2 - test updates. r=mcmanus 2014-06-25 17:33:17 -07:00
README.md Bug 1026609 - HTTP/2 draft 13 part 2 - test updates. r=mcmanus 2014-06-25 17:33:17 -07:00

node-http2-protocol

An HTTP/2 (draft-ietf-httpbis-http2-13) framing layer implementaion for node.js.

Installation

npm install http2-protocol

Examples

API

Development

Development dependencies

There's a few library you will need to have installed to do anything described in the following sections. After installing/cloning node-http2, run npm install in its directory to install development dependencies.

Used libraries:

For pretty printing logs, you will also need a global install of bunyan (npm install -g bunyan).

Developer documentation

The developer documentation is generated from the source code using docco and can be viewed online here. If you'd like to have an offline copy, just run npm run-script doc.

Running the tests

It's easy, just run npm test. The tests are written in BDD style, so they are a good starting point to understand the code.

Test coverage

To generate a code coverage report, run npm test --coverage (it may be slow, be patient). Code coverage summary as of version 0.13.0:

Statements   : 92.23% ( 1341/1454 )
Branches     : 86% ( 553/643 )
Functions    : 91.93% ( 148/161 )
Lines        : 92.32% ( 1335/1446 )

There's a hosted version of the detailed (line-by-line) coverage report here.

Logging

Contributors

Code contributions are always welcome! People who contributed to node-http2 so far:

  • Nick Hurley
  • Mike Belshe
  • vsemogutor

Special thanks to Google for financing the development of this module as part of their Summer of Code program (project: HTTP/2 prototype server implementation), and Nick Hurley of Mozilla, my GSoC mentor, who helped with regular code review and technical advices.

License

The MIT License

Copyright (C) 2013 Gábor Molnár gabor@molnar.es