-
Notifications
You must be signed in to change notification settings - Fork 1
MediaTypes
Troy Willmot edited this page Sep 25, 2016
·
1 revision
The MediaTypes class provides constants for commonly used content media types.
| Constant | Value | Description |
|---|---|---|
| ApplicationJson | application/json | Used for json content specific to the application (not a registered IANA type) |
| ApplicationXml | application/xml | Used for XML content specific to the application (not a reistered IANA type) |
| MultipartFormData | multipart/form-data | The multipart form data format. Used for large binary data such as file transfers, especially when it spans multiple requests. |
| TextHtml | text/html | Used for HTML content. |
| TextPlain | text/plain | Used for plain text without any formatting. |
| ApplicationFormUrlEncoded | application/x-www-form-urlencoded | Used for content formatted the same way as it would be if it were URL query parameters. |