Package-level declarations

Types

Link copied to clipboard

A functional type for accepted content types contributor.

Link copied to clipboard

A configuration for the ContentNegotiation plugin.

Link copied to clipboard
data class ContentTypeWithQuality(val contentType: ContentType, val quality: Double = 1.0)

A pair of ContentType and quality usually parsed from the HttpHeaders.Accept headers.

Properties

Link copied to clipboard

A plugin that serves two primary purposes:

Functions

Link copied to clipboard
fun ApplicationCall.suitableCharset(defaultCharset: Charset = Charsets.UTF_8): Charset

Detects a suitable charset for an application call by using the Accept header or fallbacks to defaultCharset.