Mattt Thompson
200512c7b3
Merge branch 'experimental-http-client-callback-refactoring' into experimental-0.8
2011-11-07 11:20:15 -06:00
Dustin Barker
c5190878a9
Check only content length, ignore status code.
...
Per discussion here: https://github.com/gowalla/AFNetworking/pull/88#issuecomment-2486149 .
2011-10-25 10:08:02 -07:00
Mattt Thompson
a37cda1032
Follow overriding pattern for error as used in HTTP operation subclasses
2011-10-24 13:32:42 -05: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
8007f0aade
Fixing default implementation of AFHTTPRequestOperation +HTTPRequestOperationWithRequest:success:failure: not return nil
2011-10-24 09:48:19 -05:00
Mattt Thompson
25ea84a891
Changing -hasContent to readonly @property
...
Changing conditions of not having property to be either length == 0 or status code == 204
2011-10-21 13:56:31 -05:00
dstnbrkr
71a7a06649
Only check content type when response has content.
2011-10-21 10:59:59 -07:00
Mattt Thompson
e85756ff4c
Merge branch 'ignore-content-type' of https://github.com/dstnbrkr/AFNetworking into dstnbrkr-ignore-content-type
...
Conflicts:
AFNetworking/AFHTTPRequestOperation.m
2011-10-21 11:09:15 -05:00
dstnbrkr
256704ee96
Ignore content type if content has zero length.
2011-10-20 11:22:33 -07:00
Mattt Thompson
c6735ffb76
Pedantically reordering conditions for acceptable content type
2011-10-20 13:03:32 -05:00
Dustin Barker
c9546830e0
Ignore Content-Type for 204 No Content response.
2011-10-20 00:24:27 -07:00
Mattt Thompson
1de3d17548
[Issue #77 ] Returning correct error ivar in AFHTTPRequestOperation -error
2011-10-18 10:56:35 -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
3e27e189ee
Adding missing release for _acceptableContentTypes in AFHTTPRequestOperation -dealloc
2011-10-10 13:05:47 -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
Mattt Thompson
ccdc5f2d9b
Approaching a reasonable design for restructuring AFHTTPRequestOperation and subclasses
2011-10-05 12:36:45 -05:00
Mattt Thompson
b85c59516d
Don't execute completion block if cancelled
2011-10-04 00:41:32 -05:00
Mattt Thompson
561df45eb7
Initial working implementation of new candidate class structure
2011-10-04 00:13:12 -05:00
Mattt Thompson
1722e0b70d
Adding bytesRead/bytesWritten argument to progress blocks
...
Changing progress block parameters to use NSInteger instead of NSUInteger
2011-09-26 10:39:47 -05:00
Mattt Thompson
2f8b58fc77
Adding __unused designation to AFHTTPRequestOperation method implementation parameters as appropriate
2011-09-26 10:14:46 -05:00
Mattt Thompson
665bbc541a
Changing AFHTTPRequestOperation internal designated initializer from -initWithURLRequest: to -init
2011-09-26 10:10:48 -05:00
Mattt Thompson
d12edee331
Renaming operationWithRequest:inputStream:outputStream:completion: to streamingOperationWithRequest:inputStream:outputStream:completion
2011-09-26 09:06:35 -05:00
Mattt Thompson
e76262c275
Adding enabled @property to AFNetworkActivityIndicatorManager
...
Decoupling AFNetworkActivityIndicatorManager from AFHTTPRequestOperation, by using notifications instead of directly incrementing and decrementing the activity count
Initializing the network activity indicator in App Delegate
2011-09-23 15:01:19 -05:00
Mattt Thompson
c84ca99269
Adding documentation for AFNetworkActivityIndicatorManager
...
Changing public API for AFNetworkActivityIndicatorManager from -start/stopAnimating to -increment/decrementActivityCount
2011-09-22 10:25:55 -05:00
Mattt Thompson
db4c852e3d
[Issue #33 ] Changing return type of class method object contructors from id to an actual instance of that class
2011-09-21 15:33:20 -05:00
Mattt Thompson
ce2034beb8
First draft of documentation for AFHTTPRequestOperation
2011-09-18 13:19:18 -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
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
c8ee535ccc
[Issue #29 ] Fixing operationWithRequest:inputStream:outputStream:completion: to actually assign outputStream
2011-09-15 10:22:15 -05: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
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
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
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
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
884bacfd4b
Initial support for NSInputStream and NSOutputStream to AFHTTPRequestOperation
2011-08-05 13:52: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
68dc7e866e
Using NSJSONSerializer when supported, falling back on JSONKit
...
Changing return type for JSON response from NSDictionary to id, to support non-dictionary top-level elements in response, such as arrays
Defining default acceptable content types and status codes as class methods in AFJSONRequestOperation
Adding text/json to acceptable MIME type for JSON
2011-08-03 11:31:00 -05:00
Mattt Thompson
f169a93f58
Moving AFNetworking classes into correct directory
2011-07-27 15:20:37 -05:00