https://github.com/tinymind/lshttpgetmanager
A lightweight http get request manager, easy to download data from a static url.
https://github.com/tinymind/lshttpgetmanager
Last synced: 5 months ago
JSON representation
A lightweight http get request manager, easy to download data from a static url.
- Host: GitHub
- URL: https://github.com/tinymind/lshttpgetmanager
- Owner: tinymind
- Created: 2014-04-15T08:08:26.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-04-15T08:55:42.000Z (almost 12 years ago)
- Last Synced: 2025-01-10T11:59:11.995Z (about 1 year ago)
- Language: Objective-C
- Homepage:
- Size: 266 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
LSHttpGetManager
================
A lightweight http get request manager, easy to download data from a static url.
####A lightweight http tool to request data
LSHttpGetManager is a wrapper of NSURLConnection. It sends a http url and return the received data from web server.
####Installation
Just download and copy the [LSHttpGetManager](https://github.com/tinymind/LSHttpGetManager/tree/master/LSHttpGetManager) to your project.
Or:
```cpp
$ git https://github.com/tinymind/LSHttpGetManager.git
```
####Usage
```cpp
#import "LSHttpGetManager.h"
- (void)onDownloadButtonTouched:(id)sender
{
[[LSHttpGetManager sharedObject] sendHttpRequestWithUrl:self.url taskKey:self.taskKey completion:^(BOOL succeed, NSData *recvData, NSError *error) {
if (succeed) {
self.imgView.image = [UIImage imageWithData:recvData];
}
}];
}
```
####Example
