UNPKG

node-web-mvc

Version:
15 lines (14 loc) 403 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class AbstractBodyReader { constructor(mediaType) { this.mediaType = mediaType; } supports(mediaType) { return this.mediaType.isCompatibleWith(mediaType); } async read(request, mediaType) { return this.readInternal(request, mediaType); } } exports.default = AbstractBodyReader;