HeaderValueWithParameters

abstract class HeaderValueWithParameters(content: String, val parameters: List<HeaderValueParam> = emptyList())

Represents a header value that consist of content followed by parameters. Useful for headers such as Content-Type, Content-Disposition and so on.

Constructors

Link copied to clipboard
fun HeaderValueWithParameters(content: String, parameters: List<HeaderValueParam> = emptyList())

Types

Link copied to clipboard
object Companion

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

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard

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