This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private let defaultTopType: String = "application" | |
private let defaultSubType: String = "octet-stream" | |
/// Represents a media type, consisting of a top-level type and a subtype. | |
/// May also possess parameters which adjust or qualify the media type. | |
/// MimeType parameters are not parsed or processed but are provided as-is as a String | |
public struct MimeType: ExpressibleByStringLiteral, CustomStringConvertible, Comparable { | |
/// Required for StringLiteralConvertible | |
public typealias StringLiteralType = String |