ResourceMetadata

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

Metadata about a Resource in JSON serializable format.

Constructors

Link copied to clipboard
constructor(acceptsRanges: Boolean? = null, mediaType: String? = null, pathRelativeToBaseUrl: String? = null, size: Long? = null, url: String)

Types

Link copied to clipboard
object Companion

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 if known.

Link copied to clipboard

The subpath to the resource starting from the base URL of the resource provider. The subpath must not contain any '..' components.

Link copied to clipboard
val size: Long? = null

The size of the resource in bytes if known.

Link copied to clipboard
val url: String

The full URL to this resource.

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)