Commit graph

436 commits

Author SHA1 Message Date
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
Mattt Thompson
5d2a0b1c91 Updating and revising README to match 0.7 API changes 2011-10-12 11:39:40 -05:00
Mattt Thompson
70be906529 Adding AFNetworkActivityIndicatorManager to AFNetworking.h 2011-10-12 11:11:38 -05:00
Mattt Thompson
15be99000a Adding AFNetworking.h to iOS example
Rearranging iOS example project file list
2011-10-12 11:11:18 -05:00
Mattt Thompson
207b914545 Improving documentation of AFHTTPClient, especially concerning its automatic content parsing behavior 2011-10-12 11:07:01 -05:00
Mattt Thompson
ea05359343 Adding self-deprecating apology for utter lack of command of AppKit 2011-10-12 10:54:30 -05:00
Mattt Thompson
c7af6d7397 Minor tweaks to Mac example application 2011-10-12 10:52:22 -05:00
Mattt Thompson
c492d488d8 Further documentation revisions 2011-10-12 10:42:53 -05:00
Mattt Thompson
b8ca3496f8 Adding -unregisterHTTPOperationClass to AFHTTPClient
Removing 'Accept: applciation/json' default header from AFHTTPClient

Revising documentation for AFHTTPClient
2011-10-12 10:41:59 -05:00
Mattt Thompson
e9855af89d Fixing race condition in UIImageView category with cached images. Thanks @iwat (Chaiwat S.) 2011-10-11 17:07:27 -05:00
Mattt Thompson
e7f799484a Adding Mac user agent to AFHTTPClient. Thanks to @Sutto (Darcy Laycock) 2011-10-11 16:55:14 -05:00
Mattt Thompson
a84be8b922 Mass edits and fixes to documentation 2011-10-11 16:48:10 -05:00
Mattt Thompson
49d5c65687 Documentation for AFHTTPClient and AFHTTPClientOperation protocol 2011-10-11 16:47:59 -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
f04c832f4f Documentation for AFHTTPRequestOperation 2011-10-11 15:46:01 -05:00
Mattt Thompson
e3205b5c6d Updating iOS example project file 2011-10-11 15:28:07 -05:00
Mattt Thompson
840eca217c Documentation for AFURLConnectionOperation 2011-10-11 15:27:36 -05:00
Mattt Thompson
5f56aebd29 Rearranging schemes, like a pedant 2011-10-11 13:26:41 -05:00