/Zeal

A Venice-based fork of the GCD-based HTTP client for Swift 2 (Linux ready)

Primary LanguageSwiftMIT LicenseMIT

Zeal

Swift 2.2 Platforms OS X | Linux License MIT Slack Status

This fork of Zeal is a Venice-based HTTP client for Swift 2.

Features

  • No Foundation dependency (Linux ready)

Dependencies

Zeal is made of:

Usage

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.

Installation

SwiftPM

let package = Package(
    name: "YourProject",
    dependencies: [
        .Package(url: "https://github.com/Zewo/Venice.git", majorVersion: 0, minor: 1),
    ]
)

Community

Slack

Join us on Slack.

License

Zeal is released under the MIT license. See LICENSE for details.