DataType

public struct DataType

The types of content of a request. Will be used as Content-Type header inside a Mock.

  • Name of the data type.

    Declaration

    Swift

    public let name: String
  • The header value of the data type.

    Declaration

    Swift

    public let headerValue: String
  • Undocumented

    Declaration

    Swift

    public init(name: String, headerValue: String)
  • Undocumented

    Declaration

    Swift

    public static let json: NetworkMock.DataType
  • Undocumented

    Declaration

    Swift

    public static let html: NetworkMock.DataType
  • Undocumented

    Declaration

    Swift

    public static let imagePNG: NetworkMock.DataType
  • pdf

    Undocumented

    Declaration

    Swift

    public static let pdf: NetworkMock.DataType
  • mp4

    Undocumented

    Declaration

    Swift

    public static let mp4: NetworkMock.DataType
  • zip

    Undocumented

    Declaration

    Swift

    public static let zip: NetworkMock.DataType