Skip to content
QueryString Encoder/Decoder For Swift
Swift Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DHQueryString.xcodeproj
Sources
Tests
.gitignore
DHQueryString.podspec
LICENSE
Package.swift
README.md

README.md

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.

You can’t perform that action at this time.