ResourceMetadata

data class ResourceMetadata(val acceptsRanges: Boolean? = null, val mediaType: String? = null, val path: String, val size: Long? = null)

Metadata about a resource fetched from a specific ResourceProvider.

Constructors

Link copied to clipboard
fun ResourceMetadata(acceptsRanges: Boolean? = null, mediaType: String? = null, path: String, size: Long? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard
val acceptsRanges: Boolean? = null

If the resource can be partially fetched by defining a byte range.

Link copied to clipboard
val mediaType: String? = null

The media-type of the resource, or null if unknown.

Link copied to clipboard

The path to the resource within the ResourceProvider. Example: "images/background.jpg"

Link copied to clipboard
val size: Long? = null

The size of the resource in bytes, or null if unknown.