Commit graph

403 commits

Author SHA1 Message Date
Mattt Thompson
03bc87dfd7 Removing inline keyword for JSON functions 2011-11-08 20:12:58 -06:00
Mattt Thompson
6a1800661a Removing trailing whitespace 2011-11-08 20:09:23 -06:00
Mattt Thompson
fb59b75493 Fallback on NSJSONSerialization only after checking for 3rd-party libraries 2011-11-08 20:02:08 -06:00
Mattt Thompson
206f6ff1f6 Switching to NSInvocation approach to dynamic JSON library-agnostic encoding and decoding, appropriating @steipete's work on HockeyApp 2011-11-08 11:12:44 -06:00
Mattt Thompson
9a91afe3e2 [Issue #98] Adding AFHTTPClient -appendPartWithFileURL:name:error:
Changing -appendPartWithFileData:mimeType:name: to -appendPartWithFileData:name:fileName:mimeType:
2011-11-07 12:16:42 -06:00
Mattt Thompson
afbd799e3b Replacing AFHTTPClient -enqueueHTTPRequestOperationWithRequest:... with -HTTPRequestOperationWithRequest:..., thereby decoupling the automatic HTTP operation creation from enqueuing them 2011-11-07 11:43:19 -06:00
Mattt Thompson
ee88f6795e Adding #define _AF_USE_JSONKIT in API clients for example apps 2011-11-07 11:24:07 -06:00
Mattt Thompson
1fbe7846dd Merge branch 'experimental-json-agnosticism' into experimental-0.8 2011-11-07 11:21:55 -06:00
Mattt Thompson
8924702ec2 Merge branch 'experimental-image-cacheing' into experimental-0.8 2011-11-07 11:20:26 -06:00
Mattt Thompson
200512c7b3 Merge branch 'experimental-http-client-callback-refactoring' into experimental-0.8 2011-11-07 11:20:15 -06:00
Mattt Thompson
a3df2ced27 Merge branch 'experimental-dynamic-json-dependencies' into experimental-0.8
Conflicts:
	AFNetworking/AFNetworking.h
2011-11-07 11:20:02 -06:00
Mattt Thompson
082f8319af Embedding AFNetworking Logo in README 2011-11-03 17:13:08 -05:00
Mattt Thompson
ed0c87599e Adding Default.png and Icons to iOS example app 2011-11-03 17:07:30 -05:00
Mattt Thompson
eb79d53519 Return baseURL if path is nil in AFURLWithPathRelativeToURL 2011-11-02 12:00:53 -05:00
Scott Raymond
e2f5f86146 replace custom base-URL method with standard NSURL one 2011-11-01 15:42:33 -05:00
Mattt Thompson
f86ac982db Removing AFNetworking framework prefix from AFNetworking.h 2011-10-31 11:17:53 -05:00
Mattt Thompson
dcf629f4a0 Changing parameter encoding to AFFormURLParameterEncoding by default, as per the documentation 2011-10-31 11:15:43 -05:00
Mattt Thompson
4285c0de88 Merge pull request #91 from houseoflegend/master
In iOS Example, added call to super in -[SpotTableViewCell prepareForReuse]
2011-10-31 08:59:17 -07:00
Larry Legend
50628f552a In iOS Example, added call to super in -[SpotTableViewCell prepareForReuse] as per Apple documentation. 2011-10-25 20:50:16 -04:00
Mattt Thompson
4a6a93e8d4 Merge pull request #90 from dstnbrkr/has-content
Check only content length, ignore status code.
2011-10-25 10:16:35 -07: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
180fb9bb03 Cache image data, as NSPurgeableData, rather than UIImage/NSImage 2011-10-25 08:50:08 -05:00
Mattt Thompson
d5a972e549 Cache image data, as NSPurgeableData, rather than UIImage/NSImage 2011-10-25 08:49:06 -05: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
283d9cffea Initial implementation of decoupling specific JSON libraries from AFNetworking, in favor of being able to specify which one to use 2011-10-24 10:49:25 -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
1ba0d22b45 Adding _AFNETWORKING_ definition to header 2011-10-24 09:09:33 -05:00
Mattt Thompson
7c8fa85d6f Adding _AFNETWORKING_ definition to header 2011-10-21 15:27:32 -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
67d8d043c9 Merge pull request #84 from dstnbrkr/return-http-error-or-json-error
Return JSON error or HTTP error.
2011-10-21 09:12:53 -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
Dustin Barker
b906b62c59 Return JSON error or HTTP error. 2011-10-19 22:33:09 -07:00
Mattt Thompson
810096b37d Merge pull request #76 from evanlong/master
Fixing a couple of issues in the JSON and XML operation classes
2011-10-18 08:58:39 -07:00
Mattt Thompson
1de3d17548 [Issue #77] Returning correct error ivar in AFHTTPRequestOperation -error 2011-10-18 10:56:35 -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
3040aafee9 [Issue #72] More fixes to construction of URL from relative path, preventing scheme from incorrectly changing :// to :/ 2011-10-17 14:35:56 -05:00
Mattt Thompson
68ef25cb7c [Issue #72] Fixing construction of URL from path relative to base URL, where trailing slash is removed 2011-10-13 14:32:17 -05:00
Mattt Thompson
73e1137649 Fixing file upload to match 0.7 API (Thanks, @Hunter) 2011-10-13 13:29:14 -05:00
Mattt Thompson
b811dc1e94 Merge branch 'master' of github.com:gowalla/AFNetworking 2011-10-13 12:57:46 -05:00
Mattt Thompson
4a93904566 Set text encoding for -responseString to UTF-8 by default, in case an encoding is not set in the response 2011-10-13 12:57:39 -05:00
Mattt Thompson
6cfa6c8140 Merge pull request #73 from dikbrouwer/master
Fixing zero-length JSON response parsing
2011-10-13 07:45:11 -07:00
Dick Brouwer
78242fd6a3 Fixed no content response bug 2011-10-12 16:42:31 -07:00
Mattt Thompson
8da80668f4 Fixing formatting of AFHTTPClient documentation 2011-10-12 11:46:56 -05:00
Mattt Thompson
ed60b11987 Merge branch 'experimental-0.7'
Conflicts:
	AFNetworking/AFHTTPClient.h
2011-10-12 11:41:02 -05:00
Mattt Thompson
a5387b8963 Updating PodSpec to 0.7 2011-10-12 11:39:57 -05:00