Instance Method
requireDecoder(for:)
Returns a
ContentDecoder for the specified HTTPMediaType or throws an error.func requireDecoder(for mediaType: HTTPMediaType) throws -> any ContentDecoder
Discussion
let coder = try ContentConfiguration.global.requireDecoder(for: .json)