ContentDisposition

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

Represents Content-Disposition header value

Constructors

Link copied to clipboard
fun ContentDisposition(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

Functions

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): ContentDisposition

Creates new with parameter appended

Link copied to clipboard
fun withParameters(newParameters: List<HeaderValueParam>): ContentDisposition

Creates new with parameters appended

Properties

Link copied to clipboard
val disposition: String

Content disposition value without parameters

Link copied to clipboard
val name: String?

Content disposition name (from parameter named name)

Link copied to clipboard
val parameters: List<HeaderValueParam>