class ContentDisposition : HeaderValueWithParameters
Represents Content-Disposition
header value
object Parameters
Frequently used content disposition parameter names |
ContentDisposition(disposition: String, parameters: List<HeaderValueParam> = emptyList())
Represents |
val disposition: String
Content disposition value without parameters |
|
val name: String?
Content disposition name (from parameter named |
val content: String
header's content without parameters |
|
val parameters: List<HeaderValueParam> |
fun equals(other: Any?): Boolean |
|
fun hashCode(): Int |
|
fun withParameter(key: String, value: String): ContentDisposition
Creates new with parameter appended |
|
fun withParameters(newParameters: List<HeaderValueParam>): ContentDisposition
Creates new with parameters appended |
fun parameter(name: String): String?
The first value for the parameter with name comparing case-insensitively or |
|
open fun toString(): String |
val Attachment: ContentDisposition
|
|
val File: ContentDisposition
|
|
val Inline: ContentDisposition
|
|
val Mixed: ContentDisposition
|
fun parse(value: String): ContentDisposition
Parse |
fun HeaderValueWithParameters.charset(): <ERROR CLASS>?
Extracts a Charset value from the given |