Mattt Thompson
04dad96904
Fixing zlib inflate and deflate NSData category methods
2011-09-16 23:23:14 -05:00
Mattt Thompson
9ee84844c4
Updating example project to new image request API
2011-09-16 22:41:21 -05:00
Mattt Thompson
2610b0b57a
Minor refactoring to Location Formatter
2011-09-16 22:41:10 -05:00
Mattt Thompson
50014afa22
Refactoring image request API to remove unnecessary configuration, and focus the design goals of those classes
2011-09-16 22:40:52 -05:00
Mattt Thompson
251ce062f2
Stashing XML Request Operation
2011-09-16 10:36:36 -05:00
Mattt Thompson
686854b8da
Fixing AFHTTPRequestOperation -responseString, to use string encoding from response, rather than assuming UTF8
2011-09-16 10:10:15 -05:00
Mattt Thompson
085d14ed82
Fixing AFHTTPRequestOperation -setCancelled:
2011-09-16 10:09:24 -05:00
Mattt Thompson
a3970f823d
Changing AFHTTPRequestOperation @properties to be readonly
...
Rearranging ivars
2011-09-16 10:08:49 -05:00
Mattt Thompson
72d9a24777
Adding AFRestClient -enqueueHTTPOperation:
2011-09-16 10:06:11 -05:00
Mattt Thompson
2b9a66d7a9
Changing AFRestClient +baseURL to a @property
2011-09-16 10:02:51 -05:00
Mattt Thompson
76d9b2bfc8
Adding -cancelImageRequestOperation to UIImageView category
...
Improving performance of UIImageView -setImageWithURL:... by cancelling running operation if new image url request is different than passed url request
2011-09-15 14:29:29 -05:00
Mattt Thompson
57be1b3b6e
Fixing AFHTTPOperation's implementation of -cancel, to match expectations of NSOperationSubclass
2011-09-15 14:26:55 -05:00
Mattt Thompson
6572cde680
Minor code formatting for initial data capacity from expectedContentLength
2011-09-15 12:28:30 -05:00
Mattt Thompson
d62af91ac9
[Issue #16 ] Formalizing AFNetworkingErrorDomain, and constructing errors accordingly
2011-09-15 12:06:25 -05:00
Mattt Thompson
a0c570797b
[Issue #26 ] Removing UDID default header from AFRestClient
2011-09-15 10:24:07 -05:00
Mattt Thompson
c8ee535ccc
[Issue #29 ] Fixing operationWithRequest:inputStream:outputStream:completion: to actually assign outputStream
2011-09-15 10:22:15 -05:00
Mattt Thompson
78f1928f4a
Merge pull request #28 from evanlong/master
...
Fixing a leak as a result of a race condition in the sample Gowalla client
2011-09-15 08:07:54 -07:00
Evan Long
b681971116
The allocation for the shared client could occur twice resulting in a leak. Two
...
threads could pass the nil check. One would acquire the lock and create the
sharedClient. The second thread would eventually get the lock and also acquire
a sharedClient.
2011-09-15 00:58:41 -07:00
Mattt Thompson
8d9b7ace34
Merge pull request #22 from steipete/master
...
Fixes warnings, Improves UIImageView loading helper
2011-09-12 18:17:57 -07:00
Peter Steinberger
1ec54e2595
add BOOL if cache was used to load image
...
This is useful for animation - if function directly returns, there's no need to animate the new image
2011-09-12 17:36:20 +02:00
Peter Steinberger
2fbc30d137
fix selector warnings, fix warning "ignore declaration shadows a local variable" with using MIN inside of MAX
2011-09-12 17:35:45 +02:00
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