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

Function accept

test/json.js:367–369  ·  view source on GitHub ↗
(req)

Source from the content-addressed store, hash-verified

365 var server = createServer({ type: accept })
366
367 function accept (req) {
368 return req.headers['content-type'] === 'application/vnd.api+json'
369 }
370
371 request(server)
372 .post('/')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected