Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 17, 2024 via pnpm

spdy 4.0.2

Implementation of the SPDY protocol on node.js.
Package summary
Share
0
issues
2
licenses
21
MIT
2
ISC
Package created
11 Apr 2011
Version published
4 Apr 2020
Maintainers
4
Total deps
23
Direct deps
5
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
21 Packages, Including:
core-util-is@1.0.3
debug@4.3.4
detect-node@2.1.0
handle-thing@2.0.1
hpack.js@2.1.6
http-deceiver@1.2.7
isarray@1.0.0
ms@2.1.2
obuf@1.1.2
process-nextick-args@2.0.1
readable-stream@2.3.8
readable-stream@3.6.2
safe-buffer@5.1.2
safe-buffer@5.2.1
select-hose@2.0.0
spdy-transport@3.0.0
spdy@4.0.2
string_decoder@1.1.1
string_decoder@1.3.0
util-deprecate@1.0.2
wbuf@1.7.3

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
inherits@2.0.4
minimalistic-assert@1.0.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

5
All Dependencies CSV
β“˜ This is a list of spdy 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
debug4.3.412.94 kBMIT
prod
handle-thing2.0.14.01 kBMIT
prod
http-deceiver1.2.74.46 kBMIT
prod
select-hose2.0.05.23 kBMIT
prod
spdy-transport3.0.032.76 kBMIT
prod

Visualizations

Frequently Asked Questions

What does spdy do?

'spdy' is an npm package that enables the creation of HTTP2/SPDY servers in node.js. It provides a natural http module interface and integrates a fallback to regular https for browsers that do not yet support these protocols. This tool is versatile as it extends support for both http/2 (h2) and different versions of spdy (2,3,3.1). Popular web application frameworks like Express.js are compatible with the 'spdy' module.

How do you use spdy?

To use the 'spdy' module, you have to first install it using npm and then require it in your node.js server file. Here's a brief example of how you can use 'spdy' to build an HTTP2/SPDY server:

var spdy = require('spdy'),
    fs = require('fs');

var options = {
  key: fs.readFileSync(__dirname + '/keys/spdy-key.pem'),
  cert: fs.readFileSync(__dirname + '/keys/spdy-fullchain.pem'),
  spdy: {
    protocols: [ 'h2', 'spdy/3.1', ..., 'http/1.1' ],
    plain: false,
    'x-forwarded-for': true,
    connection: {
      windowSize: 1024 * 1024,
      autoSpdy31: false
    }
  }
};

var server = spdy.createServer(options, function(req, res) {
  res.writeHead(200);
  res.end('hello world!');
});

server.listen(3000);

In the above code snippet, an HTTPS server is created with the help of 'spdy'. The options object includes the private key and certificate required for the server, as well as several SPDY-specific options, which can be customized as per your requirements.

Where are the spdy docs?

For detailed documentation and more usage examples, you can visit the page for the 'spdy' module on GitHub. The docs provide a detailed usage guide, API reference, and examples for both server and client usage along with robust explanations for various options and features like push streams, trailing headers, and error handling.