UNPKG

ravendb

Version:
24 lines 748 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetNodeInfoCommand = void 0; const RavenCommand_js_1 = require("../../Http/RavenCommand.js"); class GetNodeInfoCommand extends RavenCommand_js_1.RavenCommand { createRequest(node) { const uri = node.url + "/cluster/node-info"; return { method: "GET", uri }; } async setResponseAsync(bodyStream, fromCache) { if (!bodyStream) { this._throwInvalidResponse(); } return this._parseResponseDefaultAsync(bodyStream); } get isReadRequest() { return true; } } exports.GetNodeInfoCommand = GetNodeInfoCommand; //# sourceMappingURL=GetNodeInfoCommand.js.map