Skip to content

drahot/DHQueryString

Repository files navigation

DHQueryString

Version License Platform

QueryString Encoder/Decoder For Swift

Usage

You use the DHQueryString class to convert dicionary or query string.

Requirements

Installation

DHQueryString is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "DHQueryString"

Example

let queryString = "name=Hottin&age=24"
let dictionary = DHQueryString.toDictionary(queryString)
// dictionary == ["name":"Hottin", "age":"24"]

let dictionary: ["name":"Tatsuya Hotta", "age":"24"]
let queryString = DHQueryString.toString(dictionary)

// queryString == "name=Tatsuya%20Hotta&age=24"

Author

Tatsuya Hotta

License

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

About

QueryString Encoder/Decoder For Swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published