express-get-json Flashcards
1
Q
What is the appropriate Content-Type header for HTTP messages that contain JSON in their bodies?
A
The value of the content-type header is application/json
2
Q
What is the significance of an HTTP request’s method?
A
It tells the server what type of interaction the client wants to have with it. It shows intent but does not make the server do anything particular, it is up to the server.