Vapor Documentation Beta

Protocol Content​Container

public protocol ContentContainer

Requirements

content​Type

var contentType: HTTPMediaType?

decode(_:​using:​)

func decode<D>(_ decodable: D.Type, using decoder: ContentDecoder) throws -> D where D: Decodable

encode(_:​using:​)

mutating func encode<E>(_ encodable: E, using encoder: ContentEncoder) throws where E: Encodable