mach
Version:
HTTP for JavaScript
17 lines (13 loc) • 383 B
JavaScript
;
var d = require("describe-property");
var StatusCodes = require("../StatusCodes");
module.exports = function (mach) {
Object.defineProperties(mach.Connection.prototype, {
/**
* The message that corresponds with the response status code.
*/
statusText: d.gs(function () {
return this.status + " " + StatusCodes[this.status];
})
});
};