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: about 1 year 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 (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-02-13T08:30:12.000Z (over 6 years ago)
- Last Synced: 2025-04-12T10:48:27.286Z (about 1 year ago)
- Topics: curl, http-client, libcurl, linux, macos, swift
- Language: Swift
- Homepage:
- Size: 855 KB
- Stars: 23
- Watchers: 7
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SeeURL
[](https://developer.apple.com/swift/)
[](https://developer.apple.com/swift/)
[](https://tldrlegal.com/license/mit-license)
[](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 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
```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)