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

Method getMetaField

src/http.js:163–171  ·  view source on GitHub ↗

* Get directory meta field * * @param {string} field Meta field name * @returns {Promise } Meta field value

(field)

Source from the content-addressed store, hash-verified

161 */
162
163 async getMetaField(field) {
164 const dir = await this.getDirectory();
165
166 if (('meta' in dir) && (field in dir.meta)) {
167 return dir.meta[field];
168 }
169
170 return null;
171 }
172
173 /**
174 * Prepare HTTP request body for signature

Callers

nothing calls this directly

Calls 1

getDirectoryMethod · 0.95

Tested by

no test coverage detected