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.

Inheritors

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard

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

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