ParameterEncoding
public protocol ParameterEncoding : Sendable
A type used to define how a set of parameters are applied to a URLRequest.
-
Creates a
URLRequestby encoding parameters and applying them on the passed request.Throws
Any
Errorproduced during parameter encoding.Declaration
Swift
func encode(_ urlRequest: any URLRequestConvertible, with parameters: Parameters?) throws -> URLRequestParameters
urlRequestURLRequestConvertiblevalue onto which parameters will be encoded.parametersParametersto encode onto the request.Return Value
The encoded
URLRequest.
View on GitHub
Install in Dash