MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / buildOperation

Function buildOperation

out/cli.cjs:77502–77516  ·  view source on GitHub ↗
(method, url2, pipeline, options, allowInsecureConnection, httpClient)

Source from the content-addressed store, hash-verified

77500 };
77501 };
77502 return {
77503 path: client,
77504 pathUnchecked: client,
77505 pipeline
77506 };
77507}
77508function buildOperation(method, url2, pipeline, options, allowInsecureConnection, httpClient) {
77509 var _a5;
77510 allowInsecureConnection = (_a5 = options.allowInsecureConnection) !== null && _a5 !== void 0 ? _a5 : allowInsecureConnection;
77511 return {
77512 then: function(onFulfilled, onrejected) {
77513 return sendRequest(method, url2, pipeline, Object.assign(Object.assign({}, options), { allowInsecureConnection }), httpClient).then(onFulfilled, onrejected);
77514 },
77515 async asBrowserStream() {
77516 return sendRequest(method, url2, pipeline, Object.assign(Object.assign({}, options), { allowInsecureConnection, responseAsStream: true }), httpClient);
77517 },
77518 async asNodeStream() {
77519 return sendRequest(method, url2, pipeline, Object.assign(Object.assign({}, options), { allowInsecureConnection, responseAsStream: true }), httpClient);

Callers 1

clientFunction · 0.85

Calls 2

sendRequestFunction · 0.85
thenMethod · 0.80

Tested by

no test coverage detected