ContentType

data class ContentType(val contentType: String)

A content type.

This is not meant to be a full representation, but a handy shortcut for defining media types in various DSLs.

Pre-defined values for very common content types are available in PredefinedContentTypesDsl.

Constructors

Link copied to clipboard
fun ContentType(contentType: String)

Functions

Link copied to clipboard
infix fun or(other: ContentType): MultiContentType

Combines this content type with another to form a MultiContentType.

Properties

Link copied to clipboard
val contentType: String

The actual value of the content type (in full string representation).