MediaType
public struct MediaType : Equatable
MediaType is used to tell the type of content a resource is.
Examples of mediatypes are image/gif, text/css and application/xhtml+xml
-
Declaration
Swift
public let name: String
-
Declaration
Swift
public let defaultExtension: String
-
Declaration
Swift
public let extensions: [String]
-
Declaration
Swift
public init(name: String, defaultExtension: String, extensions: [String] = [])