HTTP allows the sender to send a message body with the request. This is useful not only for sending complex structures but also for hiding information since unlike the URL, the message body can be encrypted (for example, when using HTTP Secure (HTTPS). Not every HTTP request type can send a message body; for example, adding a message body to a GET request is usually not supported by server frameworks, and here, ASP.NET Core is no exception.
When a request with a message body is sent to a server, it should contain the Content-Type header with the message body type as one of the standard MIME types. ASP.NET Core uses the content type value to determine which formatter to use in order to deserialize the message body to a method ...