Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

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.