Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

quart

schahriar50MIT0.5.0

Fastest, baddest and most experimental HTTP/2 framework for Node.js

http/2, fast, sendFile, http2, quartjs, Quart

readme

Fastest, baddest and most experimental HTTP/2 framework for Node.js

Gitter chat Build Status Test Coverage

Installation

Install from npm:

npm install quart --save

Note that Quart requires Node 8.4.0 and above with the --expose-http2 for 8.x.x versions.

Write a Quart Http/2 server

const Quart = require('Quart');
const app = new Quart({
  cert: "", // SSL Cert
  key: "" // SSL Key
});

app.handle('/', async (stream) => "Hello World!");

app.listen(8080);

Features

  • HTTP/2 Streams
  • HTTP/2 Push
  • Multiplexing
  • File serving from fd
  • Async/Await handles
  • Fast router
  • Middleware
  • Static folder serving (planned for 0.5)

Documentation

Refer to Documentation available here or the docs folder.

License

Who doesn't love a MIT license?