Skip to content

Commit

Permalink
Updated README formatting, added TLS feature and release versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnoon committed Jul 24, 2015
1 parent 86b95d0 commit a9e5211
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Alamofire is an HTTP networking library written in Swift.
- [x] Download using Request or Resume data
- [x] Authentication with NSURLCredential
- [x] HTTP Response Validation
- [x] TLS Certificate and Public Key Pinning
- [x] Progress Closure & NSProgress
- [x] cURL Debug Output
- [x] Comprehensive Unit Test Coverage
Expand All @@ -25,7 +26,7 @@ Alamofire is an HTTP networking library written in Swift.
## Requirements

- iOS 7.0+ / Mac OS X 10.9+
- Xcode 6.3
- Xcode 6.4

## Communication

Expand Down Expand Up @@ -58,7 +59,7 @@ source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'Alamofire', '~> 1.2'
pod 'Alamofire', '~> 1.3'
```

Then, run the following command:
Expand All @@ -81,7 +82,7 @@ $ brew install carthage
To integrate Alamofire into your Xcode project using Carthage, specify it in your `Cartfile`:

```ogdl
github "Alamofire/Alamofire" >= 1.2
github "Alamofire/Alamofire" >= 1.3
```

### Manually
Expand Down Expand Up @@ -371,15 +372,15 @@ Alamofire.upload(
#### Downloading a File

```swift
Alamofire.download(.GET, "http://httpbin.org/stream/100", destination: { temporaryURL, response in
Alamofire.download(.GET, "http://httpbin.org/stream/100") { temporaryURL, response in
let fileManager = NSFileManager.defaultManager()
if let directoryURL = fileManager.URLsForDirectory(.DocumentDirectory, inDomains: .UserDomainMask)[0] as? NSURL {
let pathComponent = response.suggestedFilename
return directoryURL.URLByAppendingPathComponent(pathComponent!)
}

return temporaryURL
})
}
```

#### Using the Default Download Destination
Expand Down Expand Up @@ -470,7 +471,7 @@ Alamofire.request(.GET, "http://httpbin.org/get", parameters: ["foo": "bar"])
.validate(statusCode: 200..<300)
.validate(contentType: ["application/json"])
.response { _, _, _, error in
println(error)
println(error)
}
```

Expand Down

0 comments on commit a9e5211

Please sign in to comment.