ContentType

enum ContentType : String, CustomStringConvertible, Equatable, Hashable

Available content types

API

  • JSON content

    Declaration

    Swift

    case json = "application/json"
  • xml

    XML content

    Declaration

    Swift

    case xml = "application/xml"
  • Form urlencoded content

    Declaration

    Swift

    case urlencoded = "application/x-www-form-urlencoded; charset=utf-8"

CustomStringConvertible

  • Declaration

    Swift

    public var description: String { get }

Equatable

Hashable

  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)