gecko-dev/testing/xpcshell/node-http2/lib/index.js
Nicholas Hurley 3ce8296e41 Bug 1296280 (part 0a) - Update to node-http2 3.3.6 r=mcmanus
MozReview-Commit-ID: 6c5RrFFDak0

--HG--
extra : rebase_source : 4c4b9fe9546427e85db5c333657933f10b94da91
2016-09-16 08:54:03 -07:00

53 lines
3.1 KiB
JavaScript

// [node-http2][homepage] is an [HTTP/2][http2] implementation for [node.js][node].
//
// The core of the protocol is implemented in the protocol sub-directory. This directory provides
// two important features on top of the protocol:
//
// * Implementation of different negotiation schemes that can be used to start a HTTP2 connection.
// These include TLS ALPN, Upgrade and Plain TCP.
//
// * Providing an API very similar to the standard node.js [HTTPS module API][node-https]
// (which is in turn very similar to the [HTTP module API][node-http]).
//
// [homepage]: https://github.com/molnarg/node-http2
// [http2]: https://tools.ietf.org/html/rfc7540
// [node]: https://nodejs.org/
// [node-https]: https://nodejs.org/api/https.html
// [node-http]: https://nodejs.org/api/http.html
module.exports = require('./http');
/*
HTTP API
| ^
| |
+-------------|------------|------------------------------------------------------+
| | | Server/Agent |
| v | |
| +----------+ +----------+ |
| | Outgoing | | Incoming | |
| | req/res. | | req/res. | |
| +----------+ +----------+ |
| | ^ |
| | | |
| +---------|------------|-------------------------------------+ +----- |
| | | | Endpoint | | |
| | | | | | |
| | v | | | |
| | +-----------------------+ +-------------------- | | |
| | | Stream | | Stream ... | | |
| | +-----------------------+ +-------------------- | | |
| | | | |
| +------------------------------------------------------------+ +----- |
| | | |
| | | |
| v | |
| +------------------------------------------------------------+ +----- |
| | TCP stream | | ... |
| +------------------------------------------------------------+ +----- |
| |
+---------------------------------------------------------------------------------+
*/