MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / resolveUrl

Method resolveUrl

lib/resource-mapper.mjs:57–61  ·  view source on GitHub ↗
(hostname, pathname = '')

Source from the content-addressed store, hash-verified

55
56 // Returns the URL corresponding to the relative path on the pod
57 resolveUrl (hostname, pathname = '') {
58 return !this._includeHost
59 ? `${this._rootUrl}${pathname}`
60 : `${this._protocol}//${hostname}${this._port}${this._rootUrl}${pathname}`
61 }
62
63 // Returns the file path corresponding to the relative file path on the pod
64 resolveFilePath (hostname, filePath = '') {

Callers 14

getRequestUrlMethod · 0.95
mapFileToUrlMethod · 0.95
addPermissionsFunction · 0.80
paymentPointerDocumentFunction · 0.80
checkItemNameMethod · 0.80
isOwnerMethod · 0.80
getAvailableUrlMethod · 0.80
getTrustedOriginsMethod · 0.80
handlerFunction · 0.80
handlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected