Latest 0.0.1
Homepage https://github.com/weekwood/ObjectiveMime
License MIT
Platforms ios 8.0, requires ARC
Authors

SwiftMime

Version
Stories in Ready
Build Status

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

Usage

Basic API

SwiftMime.sharedManager.lookupExtension("text/html")
SwiftMime.sharedManager.lookupType("pdf")

Custom mime type

SwiftMime.sharedManager.define([
    "text/x-some-format": ["x-sf", "x-sft", "x-sfml"],
    "application/x-my-type": ["x-mt", "x-mtt"]
])
SwiftMime.sharedManager.lookupType("pdf")

Installation

Carthage

Add the following to your Cartfile:

github "weekwood/SwiftMime"

CocoaPods

Add the following to your Podfile:

pod 'SwiftMime'

Author

di wu, [email protected]

License

SwiftMime is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "ObjectiveMime",
    "version": "0.0.1",
    "summary": "inspired from node-mime.",
    "homepage": "https://github.com/weekwood/ObjectiveMime",
    "license": "MIT",
    "authors": {
        "di wu": "[email protected]"
    },
    "source": {
        "git": "https://github.com/weekwood/ObjectiveMime.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/*.swift",
    "resources": "Pod/Assets/*.types"
}

Pin It on Pinterest

Share This