APIotaURLEncodedFormEndpoint
public protocol APIotaURLEncodedFormEndpoint : APIotaCodableEndpoint where Self.Body == Data
Defines an API endpoint for a Client whose body is an URL encoded form.
The definition must include a requestBodyQueryItems array.
-
A
URLQueryItemarray used for defining thehttpBodyof a initializedURLRequestgenerated by the receiver.Declaration
Swift
var requestBodyQueryItems: [URLQueryItem] { get }
-
httpBodyExtension methodA
Bodywhich is UTF-8 encodedData, computed fromrequestBodyQueryItems.Declaration
Swift
var httpBody: Body? { get } -
httpMethodExtension methodThe
HTTPMethodfor the receiver is by definition set to POST.Declaration
Swift
var httpMethod: HTTPMethod { get } -
request(baseUrlComponents:Extension method) Declaration
Swift
func request(baseUrlComponents: URLComponents) throws -> URLRequest
View on GitHub
Install in Dash
APIotaURLEncodedFormEndpoint Protocol Reference