'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); };