koa-accepts
Version:
Adjust content type based on accepts header
10 lines • 339 B
JavaScript
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
;