Peter Steinberger
908d77aaaf
execute custom block _before_ setting image
...
This is particularly useful if you want to animate the image change, e.g. with a core animation block - that's not possible after image is changed.
2011-09-12 17:20:50 +02:00
Peter Steinberger
bd6fc88c01
allow imageRequestOperation to be cancelled
2011-09-12 17:19:57 +02:00
Mattt Thompson
714ccc1905
Updating README to include instructions for linking libz.dylib to a project
2011-09-07 15:01:14 -05:00
Mattt Thompson
a167217ee6
Wrapping network thread lazy initializer with dispatch_once, to ensure thread safety
2011-08-31 09:59:34 -05:00
Mattt Thompson
c0271e6156
Merge branch 'experimental-http-basic-auth-helper'
2011-08-31 09:50:03 -05:00
Mattt Thompson
d8e0784e5e
Merge pull request #18 from evanlong/master
...
Thread safety
2011-08-31 07:12:27 -07:00
Evan Long
ef0cb81909
Ok, making the entire reading and increment atomic.
2011-08-30 22:36:24 -07:00
Evan Long
9a0ed2497c
Need the reads on the property to be atomic as well. Otherwise there as cases like 'startAnimating' getting called from two seperate threads. Each would read a value A. The first thread would then write the value A+1. Thread 2 also read A so it would also write A+1. As a result missing an increment
2011-08-30 22:01:03 -07:00
Evan Long
dddd567424
Making AFImageCache lazy init thread safe since it is called from main thread and background threads. Also making the increment and decrement for AFNetworkActivityIndicatorManager thread safe since start/stopAnimating are called from different threads.
2011-08-30 17:16:23 -07:00
Mattt Thompson
a129302be5
Merge pull request #15 from adamjernst/master
...
Only check HTTP status code if network error did not occur
2011-08-24 22:14:47 -07:00
Mattt Thompson
f8d3550aaf
Experimental implementation of HTTP Basic auth helper in AFRestClient
2011-08-24 15:21:17 -05:00
Adam Ernst
ea156ec3c2
Only check HTTP status code and content type if there isn't already an error passed in to the completion block. Otherwise network errors are overwritten by a faulty error stating the HTTP status code is 0.
2011-08-24 15:41:32 -04:00
Mattt Thompson
79e4d0e823
Removing unnecessary performSelectorOnMainThread for -finish calls
2011-08-24 14:28:56 -05:00
Mattt Thompson
8de22e8f99
Adding support for download progress block when an output block is used
2011-08-23 21:15:25 -05:00
Mattt Thompson
59a98bb937
Experimental implementation of download progress block
...
Renaming progressBlock to uploadProgressBlock
2011-08-23 12:12:05 -05:00
Mattt Thompson
5349a1d4ff
Experimental implementation using a single, dedicated network thread, rather than spinning up new run loops for each request
2011-08-22 19:16:31 -05:00
Mattt Thompson
450ff56e54
Fixing example in README to use user-defined NSOperationQueue
...
Reorganizing examples
2011-08-22 10:44:16 -05:00
Mattt Thompson
b54dd95d2e
Fixing example in README to use NSOperationQueue instead of just calling -start on an operation
2011-08-22 07:06:36 -05:00
Mattt Thompson
11cee66b6a
Updating README to include examples of file uploading and streaming
2011-08-16 09:06:13 -05:00
Mattt Thompson
4f9c1a12dd
Fixing no data success callback parameters
2011-08-14 20:37:05 -05:00
Mattt Thompson
d22ed88d58
Merge pull request #9 from dstnbrkr/master
...
Handle responses with no content (ex. http status code 204)
2011-08-14 18:35:52 -07:00
Mattt Thompson
4d5ae42936
Adding AFRestClient -cancelHTTPOperationsWithRequest: and -cancelAllHTTPOperations
2011-08-14 20:19:59 -05:00
Mattt Thompson
6d213e0bde
Changing activity status counter to signed integer, to ensure MAX(0,_activityCount) is enforced as expected
2011-08-14 20:11:49 -05:00
Mattt Thompson
390c51a30d
Merge branch 'gzip-compression-experimental' into experimental-gcd-processing
...
Conflicts:
AFNetworking/AFHTTPRequestOperation.m
AFNetworking/AFImageRequestOperation.m
AFNetworking/AFJSONRequestOperation.m
2011-08-14 20:06:03 -05:00
Mattt Thompson
a2138c6bb0
Adding progress callback to AFHTTPRequestOperations, which can be used to monitor the progress of POST data being sent in a file upload, for instance
2011-08-14 19:53:48 -05:00
Mattt Thompson
b734a64add
Execute block passed into UIImageView request if getting an image out of the cache
2011-08-14 19:48:31 -05:00
Mattt Thompson
da1fa38bd4
Creating custom GCD queues for JSON and image request processing
2011-08-14 19:46:33 -05:00
dstnbrkr
fa0297f1b8
Call success with nil if response data has length == 0.
...
Fixes exception when attempting to parse empty response data (i.e. HTTP Status Code 204 No Content).
2011-08-10 14:08:07 -07:00
Mattt Thompson
a6ad381407
Coercing key and value for request parameters with -description
2011-08-09 15:59:41 -05:00
Mattt Thompson
f9073df97b
Wrapping JSON and image processing in GCD async dispatch
2011-08-09 14:53:23 -05:00
Mattt Thompson
662af980c3
Don't wait for selectors to perform on main thread, and don't schedule in particular run loops
2011-08-08 20:07:55 -05:00
Mattt Thompson
065ee0226f
Removing NSDefaultRunLoop frrom default runLoopModes in AFHTTPRequestOperation instances
2011-08-07 14:32:02 -05:00
Mattt Thompson
ceed5f6b9f
Removing unnecessary NSPort instance, which was attached to NSRunLoop to prevent it from immediately exiting
2011-08-07 14:30:01 -05:00
Mattt Thompson
48be808c38
useCompression -> useGzipCompression
2011-08-05 15:15:32 -05:00
Mattt Thompson
c004ceb0f1
Initial support for Gzip compression of HTTP Post Body
2011-08-05 15:13:22 -05:00
Mattt Thompson
884bacfd4b
Initial support for NSInputStream and NSOutputStream to AFHTTPRequestOperation
2011-08-05 13:52:20 -05:00
Mattt Thompson
63ecf4bc98
Expanding success and failure block of most explicit signature for AFJSONRequestOperation to include request and response objects
2011-08-05 11:50:51 -05:00
Mattt Thompson
29de9132d2
Rearranging project directory structure
2011-08-05 11:25:20 -05:00
Mattt Thompson
bc4b92335e
Adding progress block to AFHTTPRequestOperation
...
Moving AFHTTPRequestOperation -initWithURLRequest: to class extension
2011-08-05 11:25:10 -05:00
Mattt Thompson
8833578a14
Adding NSMutableURLRequest category with -setHTTPBodyWithData:mimeType:forParameterNamed:parameters: method, for multi-part POST requests
...
Extracting categories into separate files
2011-08-05 10:58:37 -05:00
Mattt Thompson
26984f4414
Merge branch 'master' of github.com:gowalla/AFNetworking
2011-08-05 10:41:56 -05:00
Mattt Thompson
1dad3cb336
Adding method, adding a callback for when image was loaded. This fixes a shortcoming where images loaded into UITableViewCells wouldn't show up until being recycled, needing to layout its subviews
2011-08-05 10:41:20 -05:00
Mattt Thompson
ffe7b9b427
Merge pull request #6 from bdmac/master
...
imageByScalingAndCroppingImage Orientation Ratio Bug
2011-08-04 11:02:04 -07:00
Brian McManus
bee6a5da40
Fix bug with scaling images with a portrait aspect ratio.
2011-08-04 11:55:37 -04:00
Mattt Thompson
9e107d6a7b
Merge branch 'master' of github.com:gowalla/AFNetworking
2011-08-04 00:32:20 -05:00
Mattt Thompson
e2b63165fe
Minor edits to README
2011-08-04 00:32:13 -05:00
Mattt Thompson
23b66aa044
Merge pull request #5 from jparise/nsjson
...
Improving the check for NSJSONSerialization.
2011-08-03 22:10:40 -07:00
Jon Parise
359d51d84a
Improving the check for NSJSONSerialization.
...
We now only attempt to use NSJSONSerialization if we're compiling
against a Base SDK that includes it. If we are, we still retain the
NS_CLASS_AVAILABLE-based `class` check to test whether or not it's
available at runtime.
The fallback in both cases is to use JSONKit.
2011-08-03 21:19:49 -07:00
Mattt Thompson
a5a31f4609
Checking for NSJSONSerialization using NS_CLASS_AVAILABLE macro instead of NSClassFromString
2011-08-03 13:11:01 -05:00
Mattt Thompson
9a2b90c698
Adding explicit cast for associated image request operation object in UIImageView category
2011-08-03 13:02:47 -05:00