MCPcopy Create free account
hub / github.com/socketstream/socketstream / set

Function set

lib/http/cached.js:146–152  ·  view source on GitHub ↗
(url, content, mimeType)

Source from the content-addressed store, hash-verified

144
145 // assumed to be dev time frame, if this is to be used for production it should be enhanced
146 function set(url, content, mimeType) {
147 if (url.charAt(0) !== '/') { url = '/'+url; }
148 var point = getPoint(url) || new KnownPoint(url);
149 // console.info('new url:',url, mimeType);
150 point.content = content;
151 point.mimeType = mimeType;
152 }
153
154 function cachedMiddleware(req, res, next) {
155 var point = getPoint(req);

Callers

nothing calls this directly

Calls 1

getPointFunction · 0.85

Tested by

no test coverage detected