An open API service indexing awesome lists of open source software.

https://github.com/tomrlq/lrconnection

An HTTP library that makes networking for iOS easier
https://github.com/tomrlq/lrconnection

http ios networking

Last synced: about 1 month ago
JSON representation

An HTTP library that makes networking for iOS easier

Awesome Lists containing this project

README

          

# LRConnection

[![Pod Version](http://img.shields.io/cocoapods/v/LRConnection.svg?style=flat)](https://cocoapods.org/pods/LRConnection)

* LRConnection is an HTTP library that makes networking for iOS easier

## Installation
* Podfile
```ruby
pod 'LRConnection'
```
* Manually
> add LRConnection.framework to "General->Embedded Binaries"

## Requirements
* Minimum iOS 8.0

## Making HTTP Requests
* Objective-C
```objective-c
LRConnectionManager *manager = [LRConnectionManager sharedManager];
[manager requestForUrl:urlString method:LRHTTPMethodGET params:params progress:nil success:^(NSData * _Nonnull data) {
// success callback
} failure:^(NSError * _Nonnull error) {
// failure callback
}];
```
* Swift
```swift
let manager = LRConnectionManager.shared()
manager.request(forUrl: urlString, method: .GET, params: params, progress: nil, success: { (data) in
// success callback
}, failure: { (error) in
// failure callback
})
```