inversify-express-utils
Version:
Some utilities for the development of express applications with Inversify
17 lines • 510 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.StreamContent = void 0;
const httpContent_1 = require("./httpContent");
class StreamContent extends httpContent_1.HttpContent {
content;
constructor(content, mediaType) {
super();
this.content = content;
this.headers['content-type'] = mediaType;
}
async readAsync() {
return this.content;
}
}
exports.StreamContent = StreamContent;
//# sourceMappingURL=streamContent.js.map