Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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.