RequestBodyType

public enum RequestBodyType : Equatable

The body type of the request

  • The request params are sent as application/x-www-form-urlencoded mime type

    Declaration

    Swift

    case xWWWFormURLEncoded
  • The request params are sent as application/json mime type

    Declaration

    Swift

    case JSON
  • Type for multipart/form-data body by giving the boundary as String. Typically you don’t have to set it manually since it is set automatically by upload requests.

    Declaration

    Swift

    case multipartFormData(boundary: String)