Initializerswift-http-types 1.3.1HTTPTypes
init(from:)
HTTPResponse.swift:227init(from decoder: Decoder) throws
init(from decoder: Decoder) throws
s9HTTPTypes12HTTPResponseV18PseudoHeaderFieldsV4fromAEs7Decoder_p_tKcfc
What are these?TCF8
import HTTPTypes
A set of version-independent HTTP currency types.
struct PseudoHeaderFields
The pseudo header fields of a response.
struct HTTPResponse
An HTTP response message consisting of the “:status” pseudo header field and header fields.
protocol Decoder
A type that can decode values from a native format into in-memory representations.
var status: HTTPField { get set }
The underlying “:status” pseudo header field.
func encode(to encoder: Encoder) throws