HttpQuery
public struct HttpQuery
This entity represents a set of HTTP query parameters. Basically, it abstracts a simple mapping
from keys (String
) to values (String
). As a result, an instance of this struct can also be
created directly from a [String: Any]
dictionary literal where all values are represented in
the query parameters by calling String.init(describing:)
.
-
Initializes a new set of HTTP query parameters.
Declaration
Swift
public init(_ parameters: [String : Any] = [:])
Parameters
parameters
The mapping from keys to values. The latter are mapped to
String
via theString.init(describing:)
initializer.
-
Declaration
Swift
public init(dictionaryLiteral elements: (String, Any)...)