abstract class HeaderValueWithParameters
Represents a header value that consist of content followed by parameters.
Useful for headers such as Content-Type
, Content-Disposition
and so on.
HeaderValueWithParameters(content: String, parameters: List<HeaderValueParam> = emptyList())
Represents a header value that consist of content followed by parameters.
Useful for headers such as |
val content: String
header's content without parameters |
|
val parameters: List<HeaderValueParam> |
fun parameter(name: String): String?
The first value for the parameter with name comparing case-insensitively or |
|
open fun toString(): String |
fun <R> parse(value: String, init: (String, List<HeaderValueParam>) -> R): R
Parse header with parameter and pass it to init function to instantiate particular type |
fun HeaderValueWithParameters.charset(): <ERROR CLASS>?
Extracts a Charset value from the given |
class ContentDisposition : HeaderValueWithParameters
Represents |
|
class ContentType : HeaderValueWithParameters
Represents a value for a |
|
class LinkHeader : HeaderValueWithParameters
Represents a |