SourceResult

data class SourceResult(source: BufferedSource, mimeType: String?, dataSource: DataSource) : FetchResult

A raw BufferedSource result, which will be consumed by the relevant Decoder.

Parameters

source

An unconsumed BufferedSource that will be decoded by a Decoder.

mimeType

An optional MIME type for the source.

dataSource

Where source was loaded from.

Constructors

SourceResult
Link copied to clipboard
fun SourceResult(source: BufferedSource, mimeType: String?, dataSource: DataSource)

Properties

dataSource
Link copied to clipboard
val dataSource: DataSource
mimeType
Link copied to clipboard
val mimeType: String?
source
Link copied to clipboard
val source: BufferedSource