@azure/app-configuration
Version:
An isomorphic client library for the Azure App Configuration service.
17 lines • 775 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createLroSpec = createLroSpec;
const tslib_1 = require("tslib");
function createLroSpec(inputs) {
const { args, spec, sendOperationFn } = inputs;
return {
requestMethod: spec.httpMethod,
requestPath: spec.path,
sendInitialRequest: () => sendOperationFn(args, spec),
sendPollRequest: (path, options) => {
const { requestBody } = spec, restSpec = tslib_1.__rest(spec, ["requestBody"]);
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
},
};
}
//# sourceMappingURL=lroImpl.js.map