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

Function sendInternal

lib/http/cached.js:134–143  ·  view source on GitHub ↗
(url,res)

Source from the content-addressed store, hash-verified

132 }
133
134 function sendInternal(url,res) {
135 if (url.charAt(0) !== '/') { url = '/'+url; }
136 var point = getPoint(url);
137 // console.log(url,res,'sent');
138 if (point) {
139 point.handle(res.req, res);
140 } else {
141 ss.log.error('Couldn\'t serve', url);
142 }
143 }
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) {

Callers

nothing calls this directly

Calls 1

getPointFunction · 0.85

Tested by

no test coverage detected