ContentDisposition

class ContentDisposition(disposition: String, val parameters: List<HeaderValueParam> = emptyList()) : HeaderValueWithParameters

Represents Content-Disposition header value

Constructors

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

Types

Link copied to clipboard
object Companion
Link copied to clipboard
object Parameters

Frequently used content disposition parameter names

Properties

Link copied to clipboard

Content disposition value without parameters

Link copied to clipboard
val name: String?

Content disposition name (from parameter named name)

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
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
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
Link copied to clipboard
fun withParameter(key: String, value: String, encodeValue: Boolean = true): ContentDisposition

Creates new with parameter appended.

Link copied to clipboard

Creates new with parameters appended