UNPKG

@villedemontreal/http-request

Version:

HTTP utilities - send HTTP requests with proper headers, etc.

40 lines 1.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.constants = exports.Constants = void 0; const app_root_path_1 = require("app-root-path"); const path = require("path"); /** * Library constants */ class Constants { constructor() { // From the "dist/src/config" folder this.libRoot = path.normalize(path.join(__dirname, '../../..')); this.appRoot = app_root_path_1.path; } /** * Requests constants */ get request() { return { /** * Default timeout constants */ timeoutsDefault: { /** * The default number of milliseconds to wait * for the server to start sending data. */ response: 30000, /** * The default number of milliseconds to wait * for the data to finish loading. */ deadline: 60000, }, }; } } exports.Constants = Constants; exports.constants = new Constants(); //# sourceMappingURL=constants.js.map