UNPKG

@signalwire/compatibility-api

Version:
14 lines (10 loc) 278 B
'use strict'; var Response = function(statusCode, body, headers) { this.statusCode = statusCode; this.body = body; this.headers = headers; }; Response.prototype.toString = function() { return 'HTTP ' + this.statusCode + ' ' + this.body; }; module.exports = Response;