UNPKG

ravendb

Version:
20 lines 568 B
import { RavenCommand } from "../../Http/RavenCommand.js"; export class GetNodeInfoCommand extends 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; } } //# sourceMappingURL=GetNodeInfoCommand.js.map