LinkHeader

Represents a Link header value as per RFC 5988

Constructors

Link copied to clipboard
constructor(uri: String, rel: String)
constructor(uri: String, vararg rel: String)
constructor(uri: String, rel: List<String>, type: ContentType)
constructor(uri: String, params: List<HeaderValueParam>)

Types

Link copied to clipboard
object Parameters

Known Link header parameters

Link copied to clipboard
object Rel

Known rel parameter values

Properties

Link copied to clipboard
Link copied to clipboard
val uri: String

Link URI part

Functions

Link copied to clipboard

Extracts a Charset value from the given Content-Type, Content-Disposition or similar header value.

Link copied to clipboard
fun parameter(name: String): String?

The first value for the parameter with name comparing case-insensitively or null if no such parameters found

Link copied to clipboard
open override fun toString(): String