This fork of Zeal is a Venice-based HTTP client for Swift 2.
- No
Foundation
dependency (Linux ready)
Zeal is made of:
import URI
import HTTP
import Zeal
let client = HTTPClient(host: "www.apple.com", port: 80)
client.get("/") { result in
do {
let response = try result()
// do your thing! (:
} catch {
// something bad happened :(
}
}
There's an example target called ZealTarget you can run after you swift build
in the root of this repo.
let package = Package(
name: "YourProject",
dependencies: [
.Package(url: "https://github.com/Zewo/Venice.git", majorVersion: 0, minor: 1),
]
)
Join us on Slack.
Zeal is released under the MIT license. See LICENSE for details.