Commit graph

500 commits

Author SHA1 Message Date
Mattt Thompson
d5d44f681e Merge branch 'experimental-overrideable-http-operation-validation' into experimental-1.0RC1 2012-03-09 16:05:29 -08:00
Mattt Thompson
71d6af9e5c Renaming AFNetworkReachabilityStatus and changing to bitmask
Fixing AFReachabilityCallback to give correct WiFi reachability value

Minor formatting and refactoring
2012-03-09 15:48:59 -08:00
Mattt Thompson
be19b45c13 Merge branch 'AFHTTPClient-Reachability-Experiment' of https://github.com/kcharwood/AFNetworking into kcharwood-AFHTTPClient-Reachability-Experiment 2012-03-09 14:44:05 -08:00
Mattt Thompson
3c33b744f7 Minor code formatting 2012-03-09 14:08:24 -08:00
Mattt Thompson
749fe6ce77 Merge branch 'master' of https://github.com/mhausherr/AFNetworking into mhausherr-master 2012-03-09 14:01:56 -08:00
Mattt Thompson
ce2063f06d [Issue #236] Adding AFURLConnectionOperation -setCacheResponseBlock:, which allows the behavior of the NSURLConnectionDelegate method -connection:willCacheResponse: to be overridden without subclassing 2012-03-09 13:50:46 -08:00
Mattt Thompson
467de06532 [Issue #237] Adding warning about crashing behavior in iOS 4 loading a file:// URL 2012-03-09 12:56:10 -08:00
Mattt Thompson
2b6e44cf1d [Issue #238] Reverting change in AFHTTPRequestOperation -setCompletionBlockWithSuccess:failure: to once again have responseData be the response object 2012-03-09 12:44:29 -08:00
Mattt Thompson
8d145b23d9 [Issue #240] Adding semicolon to _af_nsjon_encode/decode labels 2012-03-09 12:41:26 -08:00
Mattt Thompson
45df8ab6a7 Adding a link to the NSScreencast episode about AFNetworking 2012-03-08 09:53:49 -08:00
Mathieu Hausherr
d239fbdff5 Merge branch 'master' of https://github.com/mhausherr/AFNetworking 2012-03-07 22:51:20 +01:00
Mathieu Hausherr
bc7d320ee9 Multi level query parameters support for Multipart and Formencoded requests
Generate keys like 'key1[key2][][key3]'

Solve this problem
http://stackoverflow.com/questions/9605269/afhttpclient-invalid-tokens-in-dictionary-when-using-afformurlparameterencoding
2012-03-07 22:50:25 +01:00
Mathieu Hausherr
c73c10d985 Multi level query parameters support for Multipart and Form anchored requests
Generate keys like 'key1[key2][][key3]'

Solve this problem
http://stackoverflow.com/questions/9605269/afhttpclient-invalid-tokens-i
n-dictionary-when-using-afformurlparameterencoding
2012-03-07 22:47:04 +01:00
Kevin Harwood
346c56b8f4 Changed AFReachabilityStatus naming scheme to be more clear 2012-03-05 16:21:45 -06:00
Kevin Harwood
5b49cbbc86 Added additional Reachability information to the AFHTTPClient
As discussed by @mattt in #197, this pull request takes a stab at
exposing the Reachability state via an enum property, similar to
Reachability itself.
2012-03-05 16:01:12 -06:00
Adrian Kosmaczewski
553e1d7e6b Squashed commit of the following:
commit 5efc2bc0305acc3c974e524636a824a1964adfe6
Author: Mattt Thompson <m@mattt.me>
Date:   Mon Mar 5 06:33:37 2012 -0800

    Removing .gitignore

commit c5c6aacb027185984317fbef5f959f0568587367
Author: Adrian Kosmaczewski <adrian@akosma.com>
Date:   Mon Mar 5 10:51:17 2012 +0100

    Removed the NextiveJson files from the project

commit afe8e636b2f5d0bed863339c5078a4652f1c5d9d
Author: Adrian Kosmaczewski <adrian@akosma.com>
Date:   Sun Mar 4 11:40:16 2012 +0100

    Added support for the NextiveJson library
2012-03-05 06:41:25 -08:00
Mattt Thompson
692f4ca90e Removing unused overrided implementation of HTTPRequestOperationWithRequest:success:failure: in AFImageRequestOperation 2012-03-03 13:20:51 -08:00
Mattt Thompson
8bfee9e910 Refactoring +canProcessRequest: and content type acceptability 2012-03-03 13:19:53 -08:00
Mattt Thompson
68eb634027 Adding AFContentTypesFromHTTPHeader() 2012-03-02 11:18:20 -08:00
Mattt Thompson
01572eed3d Adding new documentation header for AFHTTPClient +canProcessRequest 2012-03-02 10:49:13 -08:00
Mattt Thompson
eb7d9bef95 Adding documentation for AFHTTPRequestOperation +addAcceptableStatusCodes / +addAcceptableContentTypes 2012-03-02 10:48:06 -08:00
Mattt Thompson
5b7a2cb05f Using class method swizzling to dynamically modify class method values for acceptable status codes and content types 2012-03-02 10:42:24 -08:00
Mattt Thompson
d2b02c3f17 Merge branch 'master' of github.com:AFNetworking/AFNetworking 2012-03-01 09:09:21 -08:00
Mattt Thompson
cac44aeb34 Skip non-AFHTTPRequestOperations in AFHTTPClient -cancelAllHTTPOperationsWithMethod 2012-03-01 09:09:17 -08:00
Mattt Thompson
33d4505364 Merge pull request #221 from AFNetworking/experimental-patch-verb
Add PATCH convenience method to AFHTTPClient
2012-03-01 09:04:31 -08:00
Mattt Thompson
f489189a76 Fixing indentation of #225 2012-03-01 08:59:38 -08:00
Mattt Thompson
09401f9b66 Merge branch 'patch-1' of https://github.com/samsoffes/AFNetworking into samsoffes-patch-1 2012-03-01 08:56:42 -08:00
Mattt Thompson
ed7ed7af4a Merge pull request #224 from kcharwood/url-cancel-fix
Added in cancel changes based on @zdzisiekpu's recommendation
2012-03-01 08:41:55 -08:00
Kevin Harwood
a3bd0cc93e Releasing the connection in dealloc 2012-03-01 08:32:56 -06:00
Mattt Thompson
1171a75b84 Merge pull request #186 from jparise/indexset-string
Improve NSIndexSet formatting in error strings.
2012-02-29 18:16:20 -08:00
Sam Soffes
34c6dc504b Avoid crash with nil URL in request 2012-02-29 14:35:45 -08:00
Kevin Harwood
229cb926ed Removed nil'ing connection from the cancel process. 2012-02-29 12:02:25 -06:00
Kevin Harwood
1bab351997 Moved nil'ing the connection until after the delegate is called 2012-02-29 11:57:54 -06:00
Kevin Harwood
68e13764af Added in cancel changes based on @zdzisiekpu's recommendation
Changed connection to be retained, and set the connection to be nil in
the cancel, success, and error case.
2012-02-29 11:43:47 -06:00
Mattt Thompson
8fbe65bc63 Merge branch 'erikolsson-master' 2012-02-29 08:47:09 -08:00
Mattt Thompson
51e17984b5 Removing excess whitespace 2012-02-29 08:47:05 -08:00
Erik Olsson
ec8daf2c02 Set cancelled on main thread to avoid crashes when canceling the same connection before it has had time to cancel. 2012-02-29 14:00:23 +01:00
Mattt Thompson
4f31148101 Adding AFHTTPClient -patchPath: convenience method 2012-02-28 18:18:08 -08:00
Mattt Thompson
9dec7d71e4 Merge pull request #220 from kirsplatrick/master
Made the batch operation completion block and progress block return on the main thread by default.
2012-02-28 17:59:19 -08:00
Patrick Hernandez
cc2115e469 Made progressBlock call back to the main queue by default. 2012-02-28 17:12:10 -06:00
Patrick Hernandez
0fc6f980b9 A fix for batch enqueue completion block returning on background thread 2012-02-28 16:39:25 -06:00
Mattt Thompson
913ce47d89 Merge pull request #217 from dominic/patch-1
Updated link to UIImageView+AFNetworking category.
2012-02-26 19:09:37 -08:00
Dominic Dagradi
df177d774f Updated link to UIImageView+AFNetworking category. 2012-02-25 12:54:41 -05:00
Mattt Thompson
e0831197d3 Minor formatting changes
Adding line comment about why cancelConnection is being called as it is

Minor edit to comment about manually sending delegate message on cancel
2012-02-24 09:01:00 -08:00
Erik Olsson
f0ce3a86e3 Proposed fix to the race condition that occurs when stressing AFURLConnectionOperation.
Cancels the NSURLConnection on the same thread as the one where it was created.
2012-02-23 18:05:27 +01:00
Mattt Thompson
5ad4ca34f5 Adding compilation flags to suppress warnings for JSONKit source files 2012-02-20 20:31:54 -08:00
Mattt Thompson
b723e5b75c Removing AFInternal category, opting instead to inline success and failure dispatch
Minor refactoring and reformatting of AFHTTPRequest subclasses

Changing AFXMLRequestOperation error to XMLError to match rest of subclasses
2012-02-20 20:22:46 -08:00
Mattt Thompson
64555e5dff Merge branch 'custom-callback-queues' of https://github.com/steipete/AFNetworking into steipete-custom-callback-queues 2012-02-20 19:42:36 -08:00
Mattt Thompson
f56f538053 Merge branch 'master' of github.com:AFNetworking/AFNetworking 2012-02-20 19:32:06 -08:00
Mattt Thompson
ad27bd0397 [Issue #209] Adding conditional in AFURLEncodedStringFromStringWithEncoding to correctly handle cases where '%' is passed in literally, and not interpreted as an escape sequence, which would have previously caused the subsequent string to be nil. 2012-02-20 19:31:55 -08:00