Back to Alamofire

Destination

docs/Classes/URLEncodedFormParameterEncoder/Destination.html

5.12.0774 B
Original Source

Destination

public enum Destination

Defines where the URL-encoded string should be set for each URLRequest.

`

                methodDependent
                `

Applies the encoded query string to any existing query string for .get, .head, and .delete request. Sets it to the httpBody for all other methods.

Declaration

Swift

case methodDependent

`

                queryString
                `

Applies the encoded query string to any existing query string from the URLRequest.

Declaration

Swift

case queryString

`

                httpBody
                `

Applies the encoded query string to the httpBody of the URLRequest.

Declaration

Swift

case httpBody