1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 2× 2× 1× | 'use strict' class OptionsResponse { constructor(validMethods) { this.validMethods = validMethods; this.name = "OptionsResponse"; } action(req, res, next) { res.setHeader(["Allow", this.validMethods]); next(); } } module.exports = OptionsResponse; |