DataType
public struct DataType : Sendable
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 -
Undocumented
Declaration
Swift
public static let pdf: NetworkMock.DataType -
Undocumented
Declaration
Swift
public static let mp4: NetworkMock.DataType -
Undocumented
Declaration
Swift
public static let zip: NetworkMock.DataType
View on GitHub