Mattt Thompson
8bfee9e910
Refactoring +canProcessRequest: and content type acceptability
2012-03-03 13:19:53 -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
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
Peter Steinberger
800d05181d
Simplify dispatchFailureBlock
...
As error is overridden to always return the custom error object we can
omit the extra error: parameter in dispatchFailureBlock, making the
code even simpler.
2012-02-08 15:04:29 -08:00
Peter Steinberger
30a5cea4fc
Added methods to simplify calling the success/failure handlers.
2012-02-06 13:43:43 -08:00
Peter Steinberger
feaf0814c4
add support for setting custom success/failure callback queues. Defaults to main queue if nothing set.
2012-02-06 13:29:00 -08:00
Mattt Thompson
a9094d38f4
Merge branch 'afjson' of https://github.com/jparise/AFNetworking into jparise-afjson
2012-01-22 11:46:22 -08:00
Mattt Thompson
b782991065
Adding check for responseData having non-zero length for response object methods in AFHTTPRequestOperation subclasses
2012-01-20 11:03:08 -08:00
Jon Parise
2fc6d999b5
xml_request_operation_processing_queue() is Mac-only.
...
Wrap xml_request_operation_processing_queue() in a test for
__MAC_OS_X_VERSION_MIN_REQUIRED because it is only used by a
Mac-specific code block down below.
This addresses an unused symbol warning when compiling with strict
settings.
2012-01-19 17:25:29 -08:00
Mattt Thompson
d1b5e285ca
Minor refactoring of XMLDocumentRequestOperationWithRequest:success:failure:
2012-01-10 14:56:55 -08:00
Mattt Thompson
bb4aaa68fa
Returning NSXMLParser as response object on all platforms, and documenting the change (Thanks to Zac Bowling for the suggestion)
...
Don't set the responseParser delegate to nil in -dealloc
2011-11-10 11:47:28 -06:00
Mattt Thompson
30ea7353d4
Refactoring success and failure callbacks for HTTP request operations and client, to add more information and make everything more consistent
...
Removing AFHTTPClient protocol
2011-10-24 13:08:58 -05:00
Evan Long
436fbe82d1
AFJSONRequestOperation.m:
...
-Fixing an issue where all JSON parse errors are ignored. The operation.error
was always being set to nil no what responseJSON set the error property to.
AFXMLRequestOperation.m:
-Making sure the success callback for the iOS case is run on the main thread
2011-10-17 14:20:31 -07:00
Mattt Thompson
13bc4cfc41
Fixing pre-processor directives for XML request operation
2011-10-11 10:41:53 -05:00
Mattt Thompson
53d61e7eb2
Adding pre-processor directives to conditionally compile Mac equivalent of UIKit-dependent APIs
2011-10-11 10:39:41 -05:00
Mattt Thompson
4c7816e716
Adding conditional NSXMLDocument support for Mac platform
2011-10-11 10:20:22 -05:00
Mattt Thompson
db3dddb03b
Setting _responseXMLParser delegate to nil in AFXMLRequestOperation -dealloc
2011-10-10 11:07:14 -05:00
Mattt Thompson
998f7bb701
nil-ing out responseXMLParser delegate if AFXMLRequestOperation is cancelled
2011-10-10 11:06:31 -05:00
Mattt Thompson
b7564e9f5a
Refactoring implementation of AFHTTPRequest subclasses to fulfill AFHTTPClientOperation protocol
2011-10-10 10:41:29 -05:00
Mattt Thompson
120247718d
Removing delegate argument to class method constructor
2011-10-10 09:40:32 -05:00
Mattt Thompson
2d97154710
Merge branch 'experimental-xml-parsing' into experimental-class-restructuring
...
Conflicts:
Example/AFNetworking Example.xcodeproj/project.pbxproj
2011-10-06 11:14:53 -05:00