RequestParams
public struct RequestParams<T> where T : Encodable
Request parameter helper type. Can wrap any Encodable
as set of params, either keyed by name or indexed.
-
Create a new set of named params.
Declaration
Swift
public init(_ params: [String : T])
-
Create a new set of ordered params.
Declaration
Swift
public init(_ params: [T])
-
Declaration
Swift
public func encode(to encoder: Encoder) throws