express-get-json Flashcards

1
Q

What is the appropriate Content-Type header for HTTP messages that contain JSON in their bodies?

A

“application/json” or “/json” (however if it is “/*”, then the response will be “hey”).

‘application/json’: function () {
res.send({ message: ‘hey’ })
},

How well did you know this?
1
Not at all
2
3
4
5
Perfectly