UNPKG

ravendb

Version:
33 lines 981 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StreamCommand = void 0; const RavenCommand_js_1 = require("../../Http/RavenCommand.js"); const index_js_1 = require("../../Exceptions/index.js"); class StreamCommand extends RavenCommand_js_1.RavenCommand { _url; constructor(url) { super(); if (!url) { (0, index_js_1.throwError)("InvalidArgumentException", "Url cannot be null."); } this._url = url; this._responseType = "Empty"; } createRequest(node) { return { uri: `${node.url}/databases/${node.database}/${this._url}` }; } async processResponse(cache, response, bodyStream, url) { this.result = { response, stream: bodyStream }; return "Manually"; } get isReadRequest() { return true; } } exports.StreamCommand = StreamCommand; //# sourceMappingURL=StreamCommand.js.map