Skip to content

Instance Property

contentType

The type of data stored in the container.
var contentType: HTTPMediaType? { get }

Discussion

This is usually set according to the received data for incoming content. For outgoing content, the type is typically specified as part of encoding.