Created
June 4, 2016 22:42
-
-
Save joews/de57041877b05d1bdde23be12893efea to your computer and use it in GitHub Desktop.
Minimal express.js app with HTTP/2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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