Java com.squareup.okhttp MediaType fields, constructors, methods, implement or subclass

Example usage for Java com.squareup.okhttp MediaType fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.squareup.okhttp MediaType.

The text is from its open source code.

Field

Stringtype
Stringsubtype
Stringcharset

Method

MediaTypeparse(String string)
Returns a media type for string , or null if string is not a well-formed media type.
StringtoString()
Returns the encoded media type, like "text/plain; charset=utf-8", appropriate for use in a Content-Type header.