LinkHeader

class LinkHeader(uri: String, params: List<HeaderValueParam>) : HeaderValueWithParameters

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
fun LinkHeader(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

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
val parameters: List<HeaderValueParam>
Link copied to clipboard
val uri: String

Link URI part