UNPKG

inversify-express-utils

Version:

Some utilities for the development of express applications with Inversify

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