RequestContentType

public struct RequestContentType : RawRepresentable, Hashable

A struct representing request content types

Additional content types may be added as needed.

  • Declaration

    Swift

    public init(_ rawValue: String)
  • Declaration

    Swift

    public init(rawValue: String)
  • Declaration

    Swift

    public var rawValue: String
  • Content type of application/json

    Declaration

    Swift

    public static let applicationJSON: RequestContentType
  • Content type of text/plain

    Declaration

    Swift

    public static let textPlain: RequestContentType