UNPKG

inversify-express-utils

Version:

Some utilities for the development of express applications with Inversify

18 lines 549 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StringContent = void 0; const httpContent_1 = require("./httpContent"); const DEFAULT_MEDIA_TYPE = 'text/plain'; class StringContent extends httpContent_1.HttpContent { content; constructor(content) { super(); this.content = content; this.headers['content-type'] = DEFAULT_MEDIA_TYPE; } async readAsync() { return this.content; } } exports.StringContent = StringContent; //# sourceMappingURL=stringContent.js.map