MCPcopy Create free account
hub / github.com/expressjs/body-parser / accept

Function accept

test/raw.js:247–249  ·  view source on GitHub ↗
(req)

Source from the content-addressed store, hash-verified

245 var server = createServer({ type: accept })
246
247 function accept (req) {
248 return req.headers['content-type'] === 'application/vnd.octet'
249 }
250
251 var test = request(server).post('/')
252 test.set('Content-Type', 'application/vnd.octet')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected