ParameterEncoding
public enum ParameterEncoding
Parameter encoding types.
-
Encodes parameters into a url-encoded string to be set as or appended to any existing URL query string or set as the HTTP body of the request.
Declaration
Swift
case urlEncodedForm
-
Encodes parameters using
JSONEncoder
and sets the result as the HTTP body of the request.Declaration
Swift
case json