LinkHeader

Represents a Link header value as per RFC 5988

Constructors

Link copied to clipboard
fun LinkHeader(uri: String, rel: String)
Link copied to clipboard
fun LinkHeader(uri: String, vararg rel: String)
Link copied to clipboard
fun LinkHeader(uri: String, rel: List<String>, type: ContentType)
Link copied to clipboard

Types

Link copied to clipboard
object Parameters

Known Link header parameters

Link copied to clipboard
object Rel

Known rel parameter values

Functions

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

Properties

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

Link URI part

Extensions

Link copied to clipboard

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