public class HeaderValueWithParameters
Represents a header value that consist of content followed by parameters.
Useful for headers such as Content-Type, Content-Disposition and so on.
| Modifier and Type | Class and Description |
|---|---|
static class |
HeaderValueWithParameters.Companion |
| Modifier and Type | Field and Description |
|---|---|
static HeaderValueWithParameters.Companion |
Companion |
| Constructor and Description |
|---|
HeaderValueWithParameters(java.lang.String content,
java.util.List<io.ktor.http.HeaderValueParam> parameters)
Represents a header value that consist of content followed by parameters.
Useful for headers such as
Content-Type, Content-Disposition and so on. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContent()
header
|
java.util.List<io.ktor.http.HeaderValueParam> |
getParameters() |
java.lang.String |
parameter(java.lang.String name)
The first value for the parameter with name comparing case-insensitively or
null if no such parameters found |
java.lang.String |
toString() |
public static HeaderValueWithParameters.Companion Companion
public HeaderValueWithParameters(java.lang.String content,
java.util.List<io.ktor.http.HeaderValueParam> parameters)
Represents a header value that consist of content followed by parameters.
Useful for headers such as Content-Type, Content-Disposition and so on.
content - header's content without parametersparameters - public java.lang.String parameter(java.lang.String name)
The first value for the parameter with name comparing case-insensitively or null if no such parameters found
public java.lang.String toString()
public java.lang.String getContent()
header
's content without parameters
public java.util.List<io.ktor.http.HeaderValueParam> getParameters()