MCPcopy
hub / github.com/axios/axios / buildFullPath

Function buildFullPath

lib/core/buildFullPath.js:42–50  ·  lib/core/buildFullPath.js::buildFullPath
(baseURL, requestedURL, allowAbsoluteUrls, config)

Source from the content-addressed store, hash-verified

40 * @returns {string} The combined full path
41 */
42export default function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
43 assertValidHttpProtocolURL(requestedURL, config);
44 let isRelativeUrl = !isAbsoluteURL(requestedURL);
45 if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
46 assertValidHttpProtocolURL(baseURL, config);
47 return combineURLs(baseURL, requestedURL);
48 }
49 return requestedURL;
50}

Callers 4

getUriMethod · 0.85
resolveConfigFunction · 0.85
http.jsFile · 0.85

Calls 3

isAbsoluteURLFunction · 0.85
combineURLsFunction · 0.85

Tested by

no test coverage detected