MCPcopy Create free account
hub / github.com/PIKACHUIM/CFWorkerACME / getResourceUrl

Method getResourceUrl

src/http.js:146–154  ·  view source on GitHub ↗

* Get URL for a directory resource * * @param {string} resource API resource name * @returns {Promise } URL

(resource)

Source from the content-addressed store, hash-verified

144 */
145
146 async getResourceUrl(resource) {
147 const dir = await this.getDirectory();
148
149 if (!dir[resource]) {
150 throw new Error(`Unable to locate API resource URL in ACME directory: "${resource}"`);
151 }
152
153 return dir[resource];
154 }
155
156 /**
157 * Get directory meta field

Callers 1

getNonceMethod · 0.95

Calls 1

getDirectoryMethod · 0.95

Tested by

no test coverage detected