Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ocadaruma/myrhttpsession
Easy to use HTTP library with progress block.
https://github.com/ocadaruma/myrhttpsession
Last synced: about 2 months ago
JSON representation
Easy to use HTTP library with progress block.
- Host: GitHub
- URL: https://github.com/ocadaruma/myrhttpsession
- Owner: ocadaruma
- License: mit
- Created: 2014-07-04T05:37:51.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-06T14:03:29.000Z (over 10 years ago)
- Last Synced: 2023-08-14T21:50:34.010Z (over 1 year ago)
- Language: Objective-C
- Size: 781 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
MYRHTTPSession
==============Easy to use HTTP library with progress block.
## Usage
``` objective-c
MYRHTTPSession* session = [MYRHTTPSession sharedSession];
[session executeRequest:request progress:^(int64_t doneBytes, int64_t totalBytes) {
NSLog(@"%@%% Loaded.", @(100 * (double)doneBytes/totalBytes));
} canceled:^{
NSLog(@"cancaled.");
} completion:^(NSHTTPURLResponse *response, NSData *body, NSError *error) {
NSLog(@"completed.");
}];
```## Installation
Just copy MYRHTTPSession.{h.m} to your project.