MCPcopy
hub / github.com/http-party/node-http-proxy / send

Function send

examples/helpers/store.js:36–40  ·  view source on GitHub ↗
(obj, status)

Source from the content-addressed store, hash-verified

34 var store = this
35 return function (req, res) {
36 function send (obj, status) {
37 res.writeHead(200 || status,{'Content-Type': 'application/json'})
38 res.write(JSON.stringify(obj) + '\n')
39 res.end()
40 }
41 var url = req.url.split('?').shift()
42 if (url === '/') {
43 console.log('get index')

Callers 1

store.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected