MCPcopy Create free account
hub / github.com/totaljs/framework / createTemporaryKey

Function createTemporaryKey

index.js:18893–18895  ·  view source on GitHub ↗

* Prepare URL address to temporary key (for caching) * @param {ServerRequest or String} req * @return {String}

(req)

Source from the content-addressed store, hash-verified

18891 * @return {String}
18892 */
18893function createTemporaryKey(req) {
18894 return (req.uri ? req.uri.pathname : req).replace(REG_TEMPORARY, '_').substring(1);
18895}
18896
18897F.createTemporaryKey = createTemporaryKey;
18898

Callers 3

index.jsFile · 0.85
compile_fileFunction · 0.85
extend_responseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected