UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

40 lines 1.48 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HttpSettingsTimeout = void 0; class HttpSettingsTimeout { constructor(data) { let connectDefault = 10000; this.connect = typeof (data === null || data === void 0 ? void 0 : data.connect) !== "undefined" ? data === null || data === void 0 ? void 0 : data.connect : connectDefault; let responseDefault = 60000; this.response = typeof (data === null || data === void 0 ? void 0 : data.response) !== "undefined" ? data === null || data === void 0 ? void 0 : data.response : responseDefault; } static getConnectDefault() { return 10000; } static getConnectDescription() { return "Sets the timeout for the connection establishment of the HTTP requests."; } static getResponseDefault() { return 60000; } static getResponseDescription() { return "Sets the timeout to wait for the arrival of a response to the HTTP request."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new HttpSettingsTimeout(data); } toJson() { return { 'connect': this.connect, 'response': this.response, }; } clone() { return HttpSettingsTimeout.fromJson(this.toJson()); } } exports.HttpSettingsTimeout = HttpSettingsTimeout; //# sourceMappingURL=HttpSettingsTimeout.js.map