RequestType
public enum RequestType
Type of the API request. JSON body and multipart requests
have associated values which are used as a body. The other
types only describe how the HTTPParameters are encoded.
-
The HTTP parameters will be added to URL as query.
Declaration
Swift
case urlQuery -
HTTP parameters will be sent as a URL encoded body.
Declaration
Swift
case urlEncoded -
The parameters will be sent as JSON body.
Declaration
Swift
case jsonParams -
The encodable model will be serialized and sent as JSON, parameters will be added as URL query.
Declaration
Swift
case jsonBody(Encodable) -
All the parameters will be sent as multipart and files too.
Declaration
Swift
case multipart([MultipartBodyPart]) -
The parameters will be encoded using Base64 encoding and sent in request body.
Declaration
Swift
case base64Upload
View on GitHub
RequestType Enumeration Reference