Commit graph

23 commits

Author SHA1 Message Date
Sasmito Adibowo
ba60cab1be Use dispatch_once to initialize content-type-specific processing queues
Signed-off-by: Mattt Thompson <m@mattt.me>
2013-02-04 00:45:35 +01:00
Mattt Thompson
87c8c776d9 Using DISPATCH_QUEUE_CONCURRENT for all calls to dispatch_queue_create for media type processing queues 2013-02-04 00:41:13 +01:00
Mattt Thompson
83da1edd13 Whitespace formatting by Xcode re-indentation 2013-01-27 12:15:07 -05:00
guykogus
6b892ae29c Merge branch 'master' of https://github.com/guykogus/AFNetworking into guykogus-master
Conflicts:
	AFNetworking/AFURLConnectionOperation.m

Signed-off-by: Mattt Thompson <m@mattt.me>
2012-12-27 12:30:42 -05:00
Mattt Thompson
fd00b0a5ad Merge branch 'bug/wStrict-selector-match' of https://github.com/jessedc/AFNetworking into jessedc-bug/wStrict-selector-match 2012-12-26 09:58:07 -05:00
guykogus
0530c9c107 Implemented usage of instancetype. 2012-12-23 10:59:56 +02:00
Daniel Tull
7134e9612f Cause a failure when an operation is cancelled, fixes #657 2012-12-19 14:47:49 +00:00
Jesse Collis
474a940414 Fixes a handful of -Wstrict-selector-match warnings raised by Xcode 4.6DP3. As noted by @0xced, casting satisfies the compiler without changing the behaviour. 2012-12-18 06:39:10 +11:00
Peter Steinberger
fefd1a77ff don't use __weak for completionBlocks. (Issue #414)
We nil out the completionBlock manually in AFURLConnectionOperation. Using __weak here potentially doesn't call the set completion blocks.
Restores iOS4 compatibility. Also shortens inline ifs with a ternary conditional(?:).
2012-07-16 19:21:30 +02:00
Mattt Thompson
f1b3101a63 First pass at converting to ARC 2012-06-26 09:14:52 -07:00
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
b782991065 Adding check for responseData having non-zero length for response object methods in AFHTTPRequestOperation subclasses 2012-01-20 11:03:08 -08: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
Mattt Thompson
c492d488d8 Further documentation revisions 2011-10-12 10:42:53 -05:00
Mattt Thompson
340fbf19eb Documentation for AFHTTPRequestOperation and subclasses
Removing public accessor for property list format property
2011-10-11 16:08:46 -05:00
Mattt Thompson
b7564e9f5a Refactoring implementation of AFHTTPRequest subclasses to fulfill AFHTTPClientOperation protocol 2011-10-10 10:41:29 -05:00
Mattt Thompson
c2be31d4fa First implementation of protocol for AFHTTPClient to register classes to automatically determine the appropriate operation to create
Wrapping AFURLConnectionOperation -setCompletionBlock: with blockSelf release pattern to avoid retain cycle
2011-10-05 15:44:51 -05:00
Mattt Thompson
2c478758a2 Adding Property List request operation
Refactoring implementation of AFHTTPRequestOperation and subclasses
2011-10-05 14:14:52 -05:00