Open
Description
Make the type of REST responses configurable via Accept
header, so that applications can consume the response without writing wrappers/interceptors; if they do not consume default application/json type.
And
Make the payload of REST request configurable via Content-Type
header, so that the server can consume the payload in different formats and convert it into json before passing it to the node.
Request Header Meaning:
-H Accept -> "I prefer to receive responses in {} format"
-H Content-Type -> "The data I'm sending is in {} format"