nst/STHTTPRequest — pull request #8 by DouglasCAyers (2013-07-14 03:20:37+00:00)
Title: Download Progress Block

Hello,

Thanks for the easy-to-use API for http request, very handy! In our project we wanted to notify user % download complete for single large downloads. These changes add a new download progress block modeled after your existing upload progress block. If a developer provides a download progress block on the request then once connection begins receiving data the block will be invoked each time data is received, thus enabling the developer to update some status text or alert view to the user about download progress.

Example Usage:

```obj-c
STHTTPRequest *request = ...
request.downloadProgressBlock = ^(NSInteger bytesReceived, NSInteger totalBytesReceived, NSInteger totalBytesExpectedToReceive) {
// notify user of download progress
}

```

Thanks!