HTTPContent

public enum HTTPContent : CustomStringConvertible

A type representing HTTP content.

  • JSON Content-Type.

    Declaration

    Swift

    case json(Data)
  • Other Content-Type.

    Declaration

    Swift

    case other(type: String, body: Data)
  • JSON MIME-type.

    Declaration

    Swift

    public static let jsonType = "application/json"
  • Declaration

    Swift

    public var description: String