All Projects → BiAtoms → Request.swift

BiAtoms / Request.swift

Licence: mit
A tiny HTTP client written in swift. URLSession alternative

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Request.swift

Metasync
Asynchronous Programming Library for JavaScript & Node.js
Stars: ✭ 164 (+1071.43%)
Mutual labels:  async, asynchronous, sync
Zephyr
Effortlessly synchronize UserDefaults over iCloud.
Stars: ✭ 722 (+5057.14%)
Mutual labels:  sync, cocoapods
Open Source Ios Apps
📱 Collaborative List of Open-Source iOS Apps
Stars: ✭ 28,826 (+205800%)
Mutual labels:  tvos, cocoapods
Saber
⚔️ Saber, PHP异步协程HTTP客户端 | PHP Coroutine HTTP client - Swoole Humanization Library
Stars: ✭ 866 (+6085.71%)
Mutual labels:  async, http-client
Asynchronous
Implementation-agnostic asynchronous code
Stars: ✭ 13 (-7.14%)
Mutual labels:  asynchronous, cocoapods
G3log
G3log is an asynchronous, "crash safe", logger that is easy to use with default logging sinks or you can add your own. G3log is made with plain C++14 (C++11 support up to release 1.3.2) with no external libraries (except gtest used for unit tests). G3log is made to be cross-platform, currently running on OSX, Windows and several Linux distros. See Readme below for details of usage.
Stars: ✭ 677 (+4735.71%)
Mutual labels:  async, asynchronous
Recoil
Asynchronous coroutines for PHP 7.
Stars: ✭ 765 (+5364.29%)
Mutual labels:  async, asynchronous
Urlembeddedview
URLEmbeddedView automatically caches the object that is confirmed the Open Graph Protocol.
Stars: ✭ 633 (+4421.43%)
Mutual labels:  tvos, cocoapods
Blockly Gamepad
A Blockly extension designed to develop games (made with love ❤)
Stars: ✭ 18 (+28.57%)
Mutual labels:  async, asynchronous
Vue Loadable
⏳ Improve your loading state control with pretty simple methods and helpers.
Stars: ✭ 23 (+64.29%)
Mutual labels:  async, asynchronous
Parallel Ssh
Asynchronous parallel SSH client library.
Stars: ✭ 864 (+6071.43%)
Mutual labels:  async, asynchronous
Restclient
🦄 Simple HTTP and REST client for Unity based on Promises, also supports Callbacks! 🎮
Stars: ✭ 675 (+4721.43%)
Mutual labels:  http-client, httpclient
Reservoir
Android library to easily serialize and cache your objects to disk using key/value pairs.
Stars: ✭ 674 (+4714.29%)
Mutual labels:  async, asynchronous
Swiftcoroutine
Swift coroutines for iOS, macOS and Linux.
Stars: ✭ 690 (+4828.57%)
Mutual labels:  async, asynchronous
Guitar
A Cross-Platform String and Regular Expression Library written in Swift.
Stars: ✭ 641 (+4478.57%)
Mutual labels:  tvos, cocoapods
Gout
gout to become the Swiss Army Knife of the http client @^^@---> gout 是http client领域的瑞士军刀,小巧,强大,犀利。具体用法可看文档,如使用迷惑或者API用得不爽都可提issues
Stars: ✭ 749 (+5250%)
Mutual labels:  http-client, httpclient
Vtacknowledgementsviewcontroller
Acknowledgements screen displaying a list of licenses, for example from CocoaPods dependencies.
Stars: ✭ 863 (+6064.29%)
Mutual labels:  tvos, cocoapods
Urllib
Request HTTP(s) URLs in a complex world
Stars: ✭ 600 (+4185.71%)
Mutual labels:  http-client, httpclient
Gradientview
Easily use gradients in UIKit for iOS & tvOS
Stars: ✭ 610 (+4257.14%)
Mutual labels:  tvos, cocoapods
Parallec
Fast Parallel Async HTTP/SSH/TCP/UDP/Ping Client Java Library. Aggregate 100,000 APIs & send anywhere in 20 lines of code. Ping/HTTP Calls 8000 servers in 12 seconds. (Akka) www.parallec.io
Stars: ✭ 777 (+5450%)
Mutual labels:  async, http-client

Platform Linux Platform Cocoapods Compatible Carthage Compatible License Build Status - Master

Request.swift

A tiny (sync/async) HTTP client written in swift.

OS

Works in linux, iOS, macOS and tvOS

Example

client.request("http://example.com", headers: ["Accept": "text/html"]).response { response, error in    
        if let response = response {
            print(response.statusCode)
            print(String(cString: response.body))
        } else {
            print(error)
        }
    }

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate Request.swift into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
target '<Your Target Name>' do
pod 'Request.swift', '~> 2.3.0'
end

Then, run the following command:

$ pod install

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate Request.swift into your Xcode project using Carthage, specify it in your Cartfile:

github "BiAtoms/Request.swift" ~> 2.3.0

Run carthage update to build the framework and drag the built RequestSwift.framework into your Xcode project.

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. It is in early development, but Request.swift does support its use on supported platforms.

Once you have your Swift package set up, adding Request.swift as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/BiAtoms/Request.swift.git", from: "2.3.0")
]

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].