JSONEncoding
An extension of Alamofire.JSONEncoding to support [Any] parameters
-
Creates a URL request by encoding array parameters and applying them onto an existing request.
Throws
An
AFError.parameterEncodingFailederror if encoding fails.Declaration
Swift
public func encode(_ urlRequest: URLRequestConvertible, with parameters: [Any]?) throws -> URLRequestParameters
urlRequestThe request to have parameters applied.
parametersThe parameters to apply.
Return Value
The encoded request.
JSONEncoding Extension Reference