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

Function accept

test/text.js:271–273  ·  view source on GitHub ↗
(req)

Source from the content-addressed store, hash-verified

269 var server = createServer({ type: accept })
270
271 function accept (req) {
272 return req.headers['content-type'] === 'text/vnd.something'
273 }
274
275 request(server)
276 .post('/')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected