ravendb
Version:
RavenDB client for Node.js
24 lines • 748 B
JavaScript
;
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