Skip to content

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

Instance Method

encode(_:as:)

Serialize a Content object to the container without copying it, specifying an explicit content type.
mutating func encode(_ content: inout some Content, as contentType: HTTPMediaType) throws