Commit graph

250 commits

Author SHA1 Message Date
Michael Parker
87b852700a Fix up documentation for requestWithMethod:path:parameters:.
It is not responsible for finding the registered subclass that can handle a request; instead, it simply builds the request. HTTPRequestOperationWithRequest:success:failure: is responsible for this.
2012-01-05 20:47:59 -08:00
James Frye
44f042512c Fixing SBJSON encoding 2011-12-16 16:38:13 -05:00
Mattt Thompson
bb7b48e14e Adding section about execution time and memory constraints of multipart form data construction 2011-12-13 09:55:37 -06:00
Mattt Thompson
a5b33d573a Minor code formatting 2011-12-13 09:39:31 -06:00
Mattt Thompson
6d15ca8807 Merge branch 'master' of https://github.com/MarrLiss/AFNetworking into MarrLiss-master 2011-12-13 09:38:31 -06:00
Jake Boxer
b3244d8e57 Make JSON requests allow text/javascript content 2011-12-11 01:10:01 -08:00
Štěpán Petrů
4c5bdbd7de Added scaling while constructing image from cached data. 2011-12-10 19:00:49 +01:00
Matthias Tretter
7fdc435980 I promise, this time I really fixed it... 2011-12-10 00:06:57 +01:00
Matthias Tretter
09eece4df5 Really fixed SBJSON decoding function ;) 2011-12-09 15:46:55 +01:00
Mattt Thompson
922c617945 Merge pull request #134 from raycmorgan/master
Fix issue with multipart boundaries.
2011-11-30 16:36:58 -08:00
Cameron Boehmer
6415cade69 in UIImageView+AFNetworking, calling net request success callback after setting UIImageView.image (symmetrical with cached image retrieval/callback) 2011-11-29 17:26:33 -08:00
RayMorgan
1561f0392b Fix issue with multipart form boundaries.
The first boundary should not have a preceeding newline. This causes
some multipart parsers to miss the inital boundary.

An example of a parser facing this issue is node-formidable by felixge.
2011-11-29 14:16:48 -08:00
Mattt Thompson
e37c641656 [Issue #124] Calling super implementation in -isReady, following the guidelines for NSOperation subclasses 2011-11-22 21:22:13 -06:00
Mattt Thompson
a912382431 Changing connection property from retain to assign, to avoid retain cycle caused by NSURLConnection retaining its delegate 2011-11-22 20:57:39 -06:00
chaiwats
d1d94e6e77 fix unnecessary up-cast as discussed in #122 2011-11-22 16:50:21 +07:00
Aaron Brethorst
ac811fc5ec Raise an exception when JSON generation functionality doesn't exist. 2011-11-21 11:57:04 -08:00
Mattt Thompson
1f750a36fe Removing useless check for cache policy before cacheing images in success callback 2011-11-21 12:44:32 -06:00
Mattt Thompson
97191228e0 Fixing default cache policy for URL requests objects in UIImageView category 2011-11-21 12:42:08 -06:00
Mattt Thompson
0e93cf0840 [Issue #110] Fixing orientation issues by using UIImage imageOrientation value rather than assuming UIImageOrientationUp 2011-11-21 11:19:25 -06:00
Mattt Thompson
c466a24ae2 Fixing UIImageView category to work with AFImageRequestOperation refactoring 2011-11-21 10:40:09 -06:00
Mattt Thompson
5b5b32c5b8 Refactoring AFImageRequestOperation to use setCompletionBlockWithSuccess:failure 2011-11-21 10:23:36 -06:00
Mattt Thompson
f28cf63a96 [Issue #116] Fixing SBJSon decoding function 2011-11-21 09:48:42 -06:00
David Keegan
bfb6b35a3e Update the NSImage code to just use an NSBitmapImageRep for determining the correct pixel width and height
Thanks to @indragiek for the tip.
2011-11-18 09:59:29 -08:00
David Keegan
fbf9186d10 Adding code to set the responceImage to the correct size. 2011-11-17 23:07:40 -08:00
Mattt Thompson
71933c5f26 Merge branch 'master' of github.com:AFNetworking/AFNetworking 2011-11-14 14:24:32 -06:00
Mattt Thompson
ba29765ca9 Fixing formatting for URL construction example code in AFHTTPClient 2011-11-14 14:24:21 -06:00
chaiwats
10165ccc6f fix AFJSONEncode to work properly 2011-11-14 18:18:01 +07:00
Mattt Thompson
dcf1f8e1e4 Minor documentation fixes 2011-11-11 11:35:07 -06:00
Mattt Thompson
58693e8d8c Updating and revising documentation 2011-11-11 11:28:05 -06:00
Mattt Thompson
fdf217e8ab [Issue #103] Adding imageScale property on AFImageRequestOperation, to allow override of default behavior on iOS to automatically scale images for retina displays 2011-11-11 10:50:00 -06:00
Mattt Thompson
f801bc453c Fixing memory leak by adding missing autorelease (Thanks, Zac Bowling) 2011-11-10 11:57:32 -06:00
Mattt Thompson
648c650ae7 Changing return type of appendPartWithFileURL:name:error: to BOOL, according to Apple guidelines for methods that accept an NSError** parameter (Thanks, Zac Bowling)
Fixing issue with potential NULL dereference in setting error pointer
2011-11-10 11:56:58 -06: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
67a45388a6 Updating documentation for AFHTTPClient -HTTPRequestOperationWithRequest:success:failure: 2011-11-10 11:03:02 -06:00
Mattt Thompson
7658058083 Fixed @see method reference in AFHTTPClient documentation for get/post/put/delete methods 2011-11-10 10:26:58 -06:00
Mattt Thompson
d50652132f Fixing documentation for appendPartWithFileURL:name:error: 2011-11-09 12:05:53 -06:00
Mattt Thompson
b7d06b1fb7 Exposing AFURLEncodedStringFromStringWithEncoding and AFQueryStringFromParametersWithEncoding functions 2011-11-09 11:43:02 -06:00
Mattt Thompson
e08f236146 Reverting to NSURL +URLWithString:relativeToURL for building urls from paths
Documenting interactions of relative path parameters with baseURL
2011-11-09 10:51:33 -06:00
Mattt Thompson
e215554dc3 Removing #include Availability for AFJSONUtilities 2011-11-09 10:14:12 -06:00
Mattt Thompson
7d465da4a3 Throw an exception if no JSON parsing or generation functionality is available in AFJSONEncode/AFJSONDecode 2011-11-09 10:12:40 -06:00
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
1fbe7846dd Merge branch 'experimental-json-agnosticism' into experimental-0.8 2011-11-07 11:21:55 -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
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