Swiftpack.co - amine2233/Client as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by amine2233.
amine2233/Client 1.6.2
Swift Http Client
⭐️ 0
🕓 25 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/amine2233/Client.git", from: "1.6.2")


Client for request http/https api

About Client

Client enable you to request api easly


  • Swift 5 / Xcode 10
  • OS X 10.14 or later
  • iOS 12.0 or later
  • watchOS 5.0 or later
  • tvOS 12.0 or later



Add the following to your Podfile:


target 'YOUR_TARGET_NAME' do
  pod 'Client', :git => 'https://github.com/amine2233/Client.git'
$ pod install


Add the following to your Cartfile:

github "amine2233/Client"
$ carthage update

Swift Package Manager

Add the following to your Package.swift:

dependencies: [
    // Dependencies declare other packages that this package depends on.
    // ...
    .package(url: "https://github.com/amine2233/Client.git", from: "1.0.0"), // where 1.0.0 is tag version
$ swift package update

Basic Example

Todo: usage exemple

RUN on Linux with Docker

Running the Docker container

First, download, install, and run Docker Desktop or on Terminal for Mac.

In Terminal, switch to the directory of the Swift package you want to test.

Then run this command:

docker run --rm --privileged --interactive --tty \
    --volume "$(pwd):/src" \
    --workdir "/src" \

This tells Docker to create a Linux container with the latest Swift version installed and open a shell in it. The first time you run it, Docker will need a few seconds to download the image for the container; subsequent runs will be instantaneous.

# Older Swift versions
To test on older Swift versions, replace swift:latest with a different tag, e.g. swift:5.0. The Docker Hub page for the official Swift image lists all available tags for released Swift versions.

# Prerelease Swift versions
Recently, the Swift CI team has also begun to publish nightly Swift builds to Docker. For instance, use the swiftlang/swift:nightly-5.2-bionic image to test your code on the latest Swift 5.2 snapshot. The available tag names are listed on the downloads page on swift.org.

Running Swift commands in the Linux container

Use the usual commands to interact with the Swift compiler or package manager in the Linux environment. For example:

swift --version
swift build
swift test --enable-test-discovery

Note that the /src directory in the Linux container is a direct mirror of the current directory on the host OS, not a copy. If you delete a file in /src in the Linux container, that file will be gone on the host OS, too.

Type exit or Ctrl+D to exit the Linux shell and return to macOS.


Welcome to fork and submit pull requests!!

Before submitting pull request, please ensure you have passed the included tests. If your pull request including new function, please write test cases for it.


Client is released under the MIT License.


Stars: 0
Last commit: 2 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

25 weeks ago


Fix crash when create request if path is empty

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