Accept

data class Accept(val contentTypes: List<QualifiedContent>)

See https://www.rfc-editor.org/rfc/rfc9110.html#name-accept

Constructors

Link copied to clipboard
constructor(contentTypes: List<QualifiedContent>)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun accepts(contentType: ContentType): Boolean

Note that the Accept header ignores CharSet because that is in a separate Accept-CharSet header..