// http header · request header
Content-Type
Media type of the request body
What the Content-Type header does
Content-Type declares the media type of the message body so the other side knows how to parse it — application/json, text/html; charset=utf-8, multipart/form-data, and so on. It appears on both requests (describing the body you send) and responses (describing the body you get back). A wrong or missing value is a common cause of 400 and 415 errors.
Example
Content-Type: application/jsonWhere it's used
Content-Type is a request header. Request headers are sent by the client to describe the request and what the client can accept.