ParameterEncoding - SwiftDocOrg/Alamofire GitHub Wiki
ParameterEncoding
A type used to define how a set of parameters are applied to a URLRequest.
public protocol ParameterEncoding
Requirements
encode(_:βwith:β)
Creates a URLRequest by encoding parameters and applying them on the passed request.
func encode(_ urlRequest:β URLRequestConvertible, with parameters:β Parameters?) throws -> URLRequest
Parameters
- urlRequest:β
URLRequestConvertiblevalue onto which parameters will be encoded. - parameters:β
Parametersto encode onto the request.
Throws
Any Error produced during parameter encoding.
Returns
The encoded URLRequest.