WebResourceMetadata

data class WebResourceMetadata(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
fun WebResourceMetadata(acceptsRanges: Boolean? = null, mediaType: String? = null, pathRelativeToBaseUrl: String? = null, size: Long? = null, url: String)

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 undefined if unknown.

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, or undefined if unknown.

Link copied to clipboard
val url: String

The full URL to this resource.