Comprehensive MIME type mapping API. Includes all 600+ types and 800+ extensions defined by the Apache project, plus additional types submitted by the node.js community.
inspired from mime
SwiftMime.ext("text/html")
SwiftMime.mime("pdf")
Add the following to your Cartfile:
github "weekwood/SwiftMime"
Add the following to your Podfile:
pod 'SwiftMime'
di wu, di.wu@me.com
SwiftMime is available under the MIT license. See the LICENSE file for more info.