2020-02-20 10:57:22 +01:00

11 lines
191 B
JavaScript

'use strict';
module.exports = function handler (req, res, next, opts) {
if (req.headers.example === 'abc')
res.writeHead (1);
else
res.writeHead (2);
res.end (opts.text);
};