Skip to content

Instantly share code, notes, and snippets.

@joews
Created June 4, 2016 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joews/de57041877b05d1bdde23be12893efea to your computer and use it in GitHub Desktop.
Save joews/de57041877b05d1bdde23be12893efea to your computer and use it in GitHub Desktop.
Minimal express.js app with HTTP/2
const spdy = require("spdy");
const keys = require("spdy-keys");
const express = require("express");
const app = express();
app.get("*", (req, res) => {
res.send("aloha");
})
spdy.createServer(keys, app).listen(3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment