1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/testing/xpcshell/node-http2/lib/index.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,53 @@ 1.4 +// [node-http2][homepage] is an [HTTP/2 (draft 10)][http2] implementation for [node.js][node]. 1.5 +// 1.6 +// The core of the protocol is implemented by the [http2-protocol] module. This module provides 1.7 +// two important features on top of http2-protocol: 1.8 +// 1.9 +// * Implementation of different negotiation schemes that can be used to start a HTTP2 connection. 1.10 +// These include TLS ALPN, Upgrade and Plain TCP. 1.11 +// 1.12 +// * Providing an API very similar to the standard node.js [HTTPS module API][node-https] 1.13 +// (which is in turn very similar to the [HTTP module API][node-http]). 1.14 +// 1.15 +// [homepage]: https://github.com/molnarg/node-http2 1.16 +// [http2-protocol]: https://github.com/molnarg/node-http2-protocol 1.17 +// [http2]: http://tools.ietf.org/html/draft-ietf-httpbis-http2-10 1.18 +// [node]: http://nodejs.org/ 1.19 +// [node-https]: http://nodejs.org/api/https.html 1.20 +// [node-http]: http://nodejs.org/api/http.html 1.21 + 1.22 +module.exports = require('./http'); 1.23 + 1.24 +/* 1.25 + HTTP API 1.26 + 1.27 + | ^ 1.28 + | | 1.29 + +-------------|------------|------------------------------------------------------+ 1.30 + | | | Server/Agent | 1.31 + | v | | 1.32 + | +----------+ +----------+ | 1.33 + | | Outgoing | | Incoming | | 1.34 + | | req/res. | | req/res. | | 1.35 + | +----------+ +----------+ | 1.36 + | | ^ | 1.37 + | | | | 1.38 + | +---------|------------|-------------------------------------+ +----- | 1.39 + | | | | Endpoint | | | 1.40 + | | | | | | | 1.41 + | | v | | | | 1.42 + | | +-----------------------+ +-------------------- | | | 1.43 + | | | Stream | | Stream ... | | | 1.44 + | | +-----------------------+ +-------------------- | | | 1.45 + | | | | | 1.46 + | +------------------------------------------------------------+ +----- | 1.47 + | | | | 1.48 + | | | | 1.49 + | v | | 1.50 + | +------------------------------------------------------------+ +----- | 1.51 + | | TCP stream | | ... | 1.52 + | +------------------------------------------------------------+ +----- | 1.53 + | | 1.54 + +---------------------------------------------------------------------------------+ 1.55 + 1.56 +*/