Swiftpack.co - shiroyagicorp/swift-seeurl as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by shiroyagicorp.
shiroyagicorp/swift-seeurl 1.9.3
cURL based HTTP(S) Client for Swift
⭐️ 15
🕓 4 years ago
.package(url: "https://github.com/shiroyagicorp/swift-seeurl.git", from: "1.9.3")

SeeURL

Swift Platforms License CircleCI

libcurl based HTTP(S) Client for Swift.

Installation

  • Add SeeURL to Package.swift of your project.
import PackageDescription

let package = Package(
    dependencies: [
        .Package(url: "https://github.com/shiroyagicorp/swift-seeurl.git", from: "1.9.0")
    ]
)

Swift 5.0 or later on Linux, you might need to install libcurl by apt-get install libcurl4-openssl-dev.

Usage

import SeeURL
let result = try HTTPClient.sendRequest(method: "GET", url: "https://google.com")
print(result.statusCode, result.body)

LICENSE

MIT

Acknowledgement

GitHub

link
Stars: 15
Last commit: 4 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Dependencies

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics