all files / lib/ optionsresponse.js

60% Statements 3/5
100% Branches 0/0
50% Functions 1/2
60% Lines 3/5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17                           
'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;