Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shiroyagicorp/swift-seeurl
cURL based HTTP(S) Client for Swift
https://github.com/shiroyagicorp/swift-seeurl
curl http-client libcurl linux macos swift
Last synced: 21 days ago
JSON representation
cURL based HTTP(S) Client for Swift
- Host: GitHub
- URL: https://github.com/shiroyagicorp/swift-seeurl
- Owner: shiroyagicorp
- License: other
- Created: 2016-05-27T06:06:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-02-13T08:30:12.000Z (over 4 years ago)
- Last Synced: 2024-10-02T06:41:35.825Z (about 1 month ago)
- Topics: curl, http-client, libcurl, linux, macos, swift
- Language: Swift
- Homepage:
- Size: 855 KB
- Stars: 23
- Watchers: 8
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SeeURL
[![Swift](https://img.shields.io/badge/Swift-4.1-orange.svg?style=flat)](https://developer.apple.com/swift/)
[![Platforms](https://img.shields.io/badge/platform-macOS%20%7C%20Linux-lightgrey.svg)](https://developer.apple.com/swift/)
[![License](https://img.shields.io/badge/license-MIT-71787A.svg)](https://tldrlegal.com/license/mit-license)
[![CircleCI](https://circleci.com/gh/shiroyagicorp/swift-seeurl.svg?style=svg)](https://circleci.com/gh/shiroyagicorp/swift-seeurl)libcurl based HTTP(S) Client for Swift.
## Installation
* Add `SeeURL` to `Package.swift` of your project.
```swift
import PackageDescriptionlet 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
```swift
import SeeURL
let result = try HTTPClient.sendRequest(method: "GET", url: "https://google.com")
print(result.statusCode, result.body)
```## LICENSE
MIT
### Acknowledgement
* [PureSwift/SeeURL](https://github.com/PureSwift/SeeURL)