Media Type = MIME Type
指明了entity body中的格式
- text/html
- image/png
- application/json
//response
HTTP/1.1 200 OK
Content-Length: 95267
Content-Type: image/png
//request
Accept: text/html,application/xhtml+xml,application/xml
Media Type 告诉 WebAPI 如何序列化和反序列化message body(支持格式:ML, JSON, BSON, and form-urlencoded data)
可以自定义Formatter
url:http://www.asp.net/web-api/overview/formats-and-model-binding/media-formatters