public class ContentTypesKt
| Modifier and Type | Method and Description |
|---|---|
static java.nio.charset.Charset |
charset(HeaderValueWithParameters $receiver)
Extracts a Charset value from the given
Content-Type, Content-Disposition or similar header value. |
static ContentType |
withCharset(ContentType $receiver,
java.nio.charset.Charset charset)
Creates a copy of
this type with the added charset parameter with charset value. |
public static ContentType withCharset(ContentType $receiver, java.nio.charset.Charset charset)
Creates a copy of this type with the added charset parameter with charset value.
public static java.nio.charset.Charset charset(HeaderValueWithParameters $receiver)
Extracts a Charset value from the given Content-Type, Content-Disposition or similar header value.