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
constructor(contentType: String)

Properties

Link copied to clipboard

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

Functions

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

Combines this content type with another to form a MultiContentType.