Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | // [node-http2][homepage] is an [HTTP/2 (draft 10)][http2] implementation for [node.js][node]. |
michael@0 | 2 | // |
michael@0 | 3 | // The core of the protocol is implemented by the [http2-protocol] module. This module provides |
michael@0 | 4 | // two important features on top of http2-protocol: |
michael@0 | 5 | // |
michael@0 | 6 | // * Implementation of different negotiation schemes that can be used to start a HTTP2 connection. |
michael@0 | 7 | // These include TLS ALPN, Upgrade and Plain TCP. |
michael@0 | 8 | // |
michael@0 | 9 | // * Providing an API very similar to the standard node.js [HTTPS module API][node-https] |
michael@0 | 10 | // (which is in turn very similar to the [HTTP module API][node-http]). |
michael@0 | 11 | // |
michael@0 | 12 | // [homepage]: https://github.com/molnarg/node-http2 |
michael@0 | 13 | // [http2-protocol]: https://github.com/molnarg/node-http2-protocol |
michael@0 | 14 | // [http2]: http://tools.ietf.org/html/draft-ietf-httpbis-http2-10 |
michael@0 | 15 | // [node]: http://nodejs.org/ |
michael@0 | 16 | // [node-https]: http://nodejs.org/api/https.html |
michael@0 | 17 | // [node-http]: http://nodejs.org/api/http.html |
michael@0 | 18 | |
michael@0 | 19 | module.exports = require('./http'); |
michael@0 | 20 | |
michael@0 | 21 | /* |
michael@0 | 22 | HTTP API |
michael@0 | 23 | |
michael@0 | 24 | | ^ |
michael@0 | 25 | | | |
michael@0 | 26 | +-------------|------------|------------------------------------------------------+ |
michael@0 | 27 | | | | Server/Agent | |
michael@0 | 28 | | v | | |
michael@0 | 29 | | +----------+ +----------+ | |
michael@0 | 30 | | | Outgoing | | Incoming | | |
michael@0 | 31 | | | req/res. | | req/res. | | |
michael@0 | 32 | | +----------+ +----------+ | |
michael@0 | 33 | | | ^ | |
michael@0 | 34 | | | | | |
michael@0 | 35 | | +---------|------------|-------------------------------------+ +----- | |
michael@0 | 36 | | | | | Endpoint | | | |
michael@0 | 37 | | | | | | | | |
michael@0 | 38 | | | v | | | | |
michael@0 | 39 | | | +-----------------------+ +-------------------- | | | |
michael@0 | 40 | | | | Stream | | Stream ... | | | |
michael@0 | 41 | | | +-----------------------+ +-------------------- | | | |
michael@0 | 42 | | | | | | |
michael@0 | 43 | | +------------------------------------------------------------+ +----- | |
michael@0 | 44 | | | | | |
michael@0 | 45 | | | | | |
michael@0 | 46 | | v | | |
michael@0 | 47 | | +------------------------------------------------------------+ +----- | |
michael@0 | 48 | | | TCP stream | | ... | |
michael@0 | 49 | | +------------------------------------------------------------+ +----- | |
michael@0 | 50 | | | |
michael@0 | 51 | +---------------------------------------------------------------------------------+ |
michael@0 | 52 | |
michael@0 | 53 | */ |