Uses of Class
com.squareup.okhttp.MediaType
| Package | Description |
|---|---|
| com.squareup.okhttp |
-
Uses of MediaType in com.squareup.okhttp
Methods in com.squareup.okhttp that return MediaType Modifier and Type Method Description MediaTypeRequest.Body. contentType()Returns the Content-Type header for this body, or null if the content type is unknown.static MediaTypeMediaType. parse(String string)Returns a media type forstring, or null ifstringis not a well-formed media type.Methods in com.squareup.okhttp with parameters of type MediaType Modifier and Type Method Description static Request.BodyRequest.Body. create(MediaType contentType, byte[] content)Returns a new request body that transmitscontent.static Request.BodyRequest.Body. create(MediaType contentType, File file)Returns a new request body that transmits the content offile.static Request.BodyRequest.Body. create(MediaType contentType, String content)Returns a new request body that transmitscontent.