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
- Host: GitHub
- URL: https://github.com/tomrlq/lrconnection
- Owner: tomrlq
- License: mit
- Created: 2018-05-11T06:16:49.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-28T03:58:04.000Z (over 7 years ago)
- Last Synced: 2025-10-23T10:39:04.003Z (5 months ago)
- Topics: http, ios, networking
- Language: Objective-C
- Homepage:
- Size: 266 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LRConnection
[](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
})
```