UNPKG

koa-accepts

Version:

Adjust content type based on accepts header

10 lines 339 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var yaml = require("js-yaml"); var msgpack = require("msgpack-lite"); exports.AVAILABLE_TYPES = { 'application/yaml': yaml.safeDump, 'application/x-msgpack': msgpack.encode, 'application/json': JSON.stringify, }; //# sourceMappingURL=constants.js.map