From 5d0b0663ca8ebb9e10bc2ee0f1b755a2084bb659 Mon Sep 17 00:00:00 2001 From: Rich Hodgkins Date: Thu, 9 Jun 2016 19:12:03 +0100 Subject: [PATCH] Updated README with the new version information --- README.md | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c993436..2e4d9aa 100644 --- a/README.md +++ b/README.md @@ -9,26 +9,36 @@ Swift enum wrapper for easier handling of HTTP status codes. The purpose of this library is to improve to clarify of code and remove the need for checking of status codes as numbers (`==200`), or as a range of values (`== 2xx`) - instead replacing it with descriptive enums. -All the [RF2616](http://www.ietf.org/rfc/rfc2616.txt) standard status codes are supported with a few added ones from the [Wikipedia page](http://en.wikipedia.org/wiki/List_of_HTTP_status_codes). +All the [RF2616](http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) standard status codes are supported with a few added ones from the [Wikipedia page](http://en.wikipedia.org/wiki/List_of_HTTP_status_codes). + +As of version 3.0.0 of this framework, the list of status codes are directly generated from a [online IANA CSV](http://www.iana.org/assignments/http-status-codes/http-status-codes-1.csv). The [HTML page](http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) has a last updated field, and this is also mirrored in the header comments to identify which version this framework is currently using.
+If this library is out of date compared to this page please open an issue and I will update the list. ## Usage -With Carthage: +### Carthage +`Cartfile`: ```ogdl -github "rhodgkins/SwiftHTTPStatusCodes" ~> 2.0 +github "rhodgkins/SwiftHTTPStatusCodes" ~> 3.0 +``` +Source code: +```swift +import HTTPStatusCodes ``` -With CocoaPods: +### CocoaPods +`Podfile`: ```ruby -pod 'HTTPStatusCodes', '~> 2.0.0' +pod 'HTTPStatusCodes', '~> 3.0.0' ``` +Source code: -In your source file: ```swift import HTTPStatusCodes ``` +### Manually Or drop in the Swift files inside the [`Sources folder`](https://github.com/rhodgkins/SwiftHTTPStatusCodes/tree/master/Sources) into your project. ## Helper methods