ContentProvider.Typed

An extension of {@link ContentProvider} that provides a content type string to be used as a {@code Content-Type} HTTP header in requests.

interface ContentProvider
interface Typed : ContentProvider {}

Members

Functions

getContentType
string getContentType()

@return the content type string such as "application/octet-stream" or "application/json;charset=UTF8", or null if no content type must be set

Inherited Members

From ContentProvider

getLength
long getLength()

@return the content length, if known, or -1 if the content length is unknown

Typed
interface Typed

An extension of {@link ContentProvider} that provides a content type string to be used as a {@code Content-Type} HTTP header in requests.

Meta