Skip to content

Instance Method

encode(_:as:)

Serialize a Content object to the container, specifying an explicit content type.
mutating func encode<C>(_ content: C, as contentType: HTTPMediaType) throws where C : Content