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

Function cachedMiddleware

lib/http/cached.js:154–161  ·  view source on GitHub ↗
(req, res, next)

Source from the content-addressed store, hash-verified

152 }
153
154 function cachedMiddleware(req, res, next) {
155 var point = getPoint(req);
156 // console.log('cmw',point,req.url);
157 if (point) {
158 return point.handle(req,res,next);
159 }
160 next();
161 }
162};

Callers

nothing calls this directly

Calls 1

getPointFunction · 0.85

Tested by

no test coverage detected