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

Function buildRequestUrl

out/cli.cjs:77367–77376  ·  view source on GitHub ↗
(endpoint, routePath, pathParameters, options = {})

Source from the content-addressed store, hash-verified

77365 code: errCode,
77366 statusCode: response.status,
77367 request: response.request,
77368 response
77369 });
77370}
77371
77372// node_modules/@azure-rest/core-client/dist/esm/urlHelpers.js
77373function buildRequestUrl(endpoint, routePath, pathParameters, options = {}) {
77374 if (routePath.startsWith("https://") || routePath.startsWith("http://")) {
77375 return routePath;
77376 }
77377 endpoint = buildBaseUrl(endpoint, options);
77378 routePath = buildRoutePath(routePath, pathParameters, options);
77379 const requestUrl = appendQueryParams(`${endpoint}/${routePath}`, options);

Callers 1

getUrlFunction · 0.85

Calls 5

buildBaseUrlFunction · 0.85
buildRoutePathFunction · 0.85
appendQueryParamsFunction · 0.85
startsWithMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected