UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

26 lines 733 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataFormats = exports.DataFormat = void 0; class DataFormat { constructor(mimeType) { this._mimeType = mimeType; } getMimeType() { return this._mimeType; } matches(mimeType) { return this.getMimeType() === mimeType; } toString() { return this.getMimeType(); } } exports.DataFormat = DataFormat; exports.DataFormats = { XML: new DataFormat("application/xml"), JSON: new DataFormat("application/json"), OCTET_STREAM: new DataFormat("application/octet-stream"), PLAIN: new DataFormat("text/plain"), ANY: new DataFormat("*/*") }; //# sourceMappingURL=DataFormat.js.map