UNPKG

@infomaker/service-authorization-lib

Version:

IMID Service Authorization Library

25 lines (20 loc) 364 B
class Response { constructor() { this.headers = {} this.statusCode = 200 this.replyData = null } setHeader(key, val) { this.headers[key] = val return this } status(statusCode) { this.statusCode = statusCode return this } send(replyData) { this.replyData = replyData return this } } module.exports = Response