LinkHeader

class LinkHeader : HeaderValueWithParameters

Represents a Link header value as per RFC 5988

Types

Parameters

object Parameters

Known Link header parameters

Rel

object Rel

Known rel parameter values

Constructors

<init>

LinkHeader(uri: String, rel: String)
LinkHeader(uri: String, vararg rel: String)
LinkHeader(uri: String, rel: List<String>, type: ContentType)
LinkHeader(uri: String, params: List<HeaderValueParam>)

Represents a Link header value as per RFC 5988

Properties

uri

val uri: String

Link URI part

Inherited Properties

content

val content: String

header’s content without parameters

parameters

val parameters: List<HeaderValueParam>

Inherited Functions

parameter

fun parameter(name: String): String?

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

toString

open fun toString(): String

Extension Functions

charset

fun HeaderValueWithParameters.charset(): Charset?

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