var spdy = require('spdy'), fs = require('fs'); var options = { // Private key key: fs.readFileSync(__dirname + '/keys/spdy-key.pem'), // Fullchain file or cert file (prefer the former) cert: fs.readFileSync(__dirname + '/keys/spdy-fullchain.pem'), // **optional** SPDY-specific options spdy: { protocols: [ 'h2', 'spdy/3.1', ..., 'http/1.1' ], plain: false, // **optional** // Parse first incoming X