Content-Type
The media type of the body, such as JSON or HTML, and often its character set.
Explained
Examples
Example
Content-Type: application/json; charset=utf-8Watch out
A POST with a JSON body but no Content-Type is often read as form data or rejected. JSON is UTF-8 by definition, so the charset is optional there.
Defined in RFC 9110 §8.3.