Commit graph

1006 commits

Author SHA1 Message Date
Mattt Thompson
4bdc72cee0 Merge pull request #498 from diederich/fix-warning
fix warning
2012-09-04 10:57:20 -07:00
Stephan Diederich
e1dafd15ec fix warning
Xcode warns about a missing prototype which can
be fixed by making the (private) method static
2012-09-04 19:24:03 +02:00
Mattt Thompson
858c716c16 Re-indenting AFHTTPClient.m 2012-09-03 11:11:24 -07:00
Mattt Thompson
8fc948cf21 Merge pull request #494 from mikelikespie/remove-accept-encoding-default-header
Removing setting Accept-Encoding by default.
2012-09-01 15:48:40 -07:00
Mike Lewis
b614dee5bb Removing setting Accept-Encoding by default.
NSURLConnection will set this to the supported formats which is a
superset of gzip. (at least in 5.1 it set deflate as well)
2012-08-31 23:29:11 -07:00
Mattt Thompson
70dff01807 Using dispatch_once pattern for initializing UIImageView request operation queue singleton
Initializing operation queue with NSOperationQueueDefaultMaxConcurrentOperationCount
2012-08-31 16:57:04 -07:00
Mattt Thompson
5ddd070607 Fixing appledoc compliation errors in documentation
Assorted copy edits and reformatting to documentation
2012-08-31 09:53:55 -07:00
Mattt Thompson
edb0830128 Removing references to AFHTTPClientOperation protocol in documentation 2012-08-31 09:13:18 -07:00
Mattt Thompson
26b5a3b533 Fixing name of path param in -cancelAllHTTPOperationsWithMethod:path: documentation 2012-08-31 09:09:52 -07:00
Mattt Thompson
ec0240f6e4 [Issue #489] Adding userInfo dictionary with current status in reachability changes 2012-08-31 09:04:54 -07:00
Mattt Thompson
1a23b98778 Using more idiomatic ?: for AFHTTPRequestOperation -setCompletionBlockWithSuccess:failure: 2012-08-31 08:42:53 -07:00
Mattt Thompson
e445903901 Adding early return for hasAcceptableContentType 2012-08-31 08:41:57 -07:00
Tony Million
cdbae5a9fb tests self.response before blindy returning 200 in hasAcceptableStatusCode
if self.response is nil then network failure is assumed
2012-08-31 09:27:43 +01:00
Tony Million
e330792411 hasAcceptableStatusCode will return true after a network failure 2012-08-30 21:51:39 +01:00
Mattt Thompson
5166d5af85 Specifying Mac OS X in User-Agent (/thanks @tewha) 2012-08-29 14:16:27 -07:00
Mattt Thompson
4f89cc650e Significant restructuring and editing of documentation, organizing notifications, functions, and constants into separate sections at the end of the class header 2012-08-29 14:15:35 -07:00
Mattt Thompson
ebe06c227d Changing error domain for failure to recognize file URL in multipart form data builder 2012-08-29 12:25:53 -07:00
Mattt Thompson
ed94ddf7b0 [Issue #472] Defining error keys for failing request and response to be included in NSError created in AFHTTPRequestOperation
Refactoring AFHTTPRequestOperation error handling code
2012-08-29 12:24:58 -07:00
Mattt Thompson
730c35926a Improving default AFHTTPClient User-Agent strings 2012-08-29 11:57:25 -07:00
Mattt Thompson
4b26f26c2d Updating documentation for AFQueryStringFromParametersWithEncoding 2012-08-29 10:57:59 -07:00
Mattt Thompson
0aeaa60a23 Removing extern declaration for AFURLEncodedStringFromStringWithEncoding function (CFURLCreateStringByAddingPercentEscapes should be used instead) 2012-08-29 10:55:34 -07:00
Mattt Thompson
e1995eae55 Significant refactoring and renaming of internal query string serialization functions. Query String parameter components are now pairs, comprised of a field and a corresponding value. 2012-08-29 10:49:55 -07:00
Mattt Thompson
bb8aee4a4f [Issue #444] Reducing number of legal characters to escape in query string parameters 2012-08-29 10:48:41 -07:00
Mattt Thompson
7a3d6560c0 Merge branch 'master' of github.com:AFNetworking/AFNetworking 2012-08-29 10:04:55 -07:00
Mattt Thompson
d7412b7ae0 Adding prefix_header_contents declaration in Podspec
Adding missing dot to end of summary

Updating Scott Raymond's e-mail address
2012-08-29 10:04:16 -07:00
Mattt Thompson
6558e95ae5 Merge pull request #476 from garethson/precision-loss-downloadProgress
Calling downloadProgress no longer casting [data length] to (long long)
2012-08-29 09:59:06 -07:00
Mattt Thompson
7681a92382 Merge pull request #477 from tewha/master
Spelling fixes
2012-08-29 09:55:28 -07:00
Mattt Thompson
3ac1eb1031 Using more idiomatic ?: for success/failureCallbackQueue fallbacks 2012-08-29 09:29:47 -07:00
Mattt Thompson
4717b66a49 Design is coming together, but something is off about the exact implementation 2012-08-23 16:21:14 -07:00
Mattt Thompson
910811a5e0 Stashing progress 2012-08-23 14:33:04 -07:00
Gareth du Plooy
13ec70cc8f AFURLConnectionOperationProgressBlock bytes now NSUinteger
This seems to be the most proper data type for this parameter.

What gets passed in for uploadProgress is an NSInteger (guaranteed to be positive), and [NSData length], which is an NSUInteger, for downloadProgress.
2012-08-23 13:15:47 -05:00
Mattt Thompson
1c85deee36 Re-indenting and fixing method signature spacing 2012-08-23 10:16:43 -07:00
Mattt Thompson
2dc837c26c Adding back -appendPartWithFileData:... 2012-08-23 10:16:26 -07:00
Steven Fisher
dd0e659e09 Spelling corrections. 2012-08-23 10:08:12 -07:00
Gareth du Plooy
1136bc5e2f Calling downloadProgress no longer casting [data length] to (long long)
AFURLConnectionOperationProgressBlock specifies "bytes" as an NSInteger. Master was casting [data length] as a long long, resulting in compilation errors if attempting to compile with more strict complication rules.

Only the totalBytes and totalBytesExpected are specified as (and correctly called with) long long values.
2012-08-23 11:59:54 -05:00
Mattt Thompson
ad850f0c33 Merge pull request #475 from matzew/patch-1
fixed typo( resonse VS response)
2012-08-23 09:58:02 -07:00
Matthias Wessendorf
88b52b0f88 fixed type( resonse VS response) 2012-08-23 19:01:30 +03:00
Mattt Thompson
d863759f52 Reformatting and documenting AFHTTPRequestOperation -connection:didReceiveResponse: 2012-08-22 11:53:19 -07:00
Mattt Thompson
384df960ac Converting int to NSUInteger for instances of manually checking status code in AFHTTPRequestOperation 2012-08-22 11:46:03 -07:00
Mattt Thompson
ea2ef1b34d Merge branch 'master' of git://github.com/leolobato/AFNetworking 2012-08-22 11:42:40 -07:00
Mattt Thompson
72a85e1ee6 Renaming numberOfCompletedOperations variable in progress block to numberOfFinishedOperations 2012-08-22 11:32:59 -07:00
Mattt Thompson
706fbe473d [Issue #469] Optimizing calculation of finished operations in batch progress callback 2012-08-22 11:31:49 -07:00
Mattt Thompson
2d7b2f35d6 [Issue #460] Removing atomic keyword in activityCount property for AFNetworkActivityIndicatorManager 2012-08-22 10:09:24 -07:00
Mattt Thompson
0e460eaff5 Merge pull request #434 from gcox/issue-417
Fixed compiler error in AFHTTPRequestOperation; #417
2012-08-21 16:12:54 -07:00
Mattt Thompson
c0ef5c1068 Replacing NSAutoreleasePool with @autoreleasepool 2012-08-21 16:06:39 -07:00
Leo Lobato
7787f17469 Fix for [Issue #237].
Check if statusCode is available on response class.
2012-08-21 16:40:58 +02:00
Max Lansing
5a790360df merged multipart streaming thingy 2012-08-16 13:39:47 -07:00
Mattt Thompson
84abd71625 Issue #463 Adding #ifdef around AFHTTPClient copyWithZone: use of network reachability status block 2012-08-16 07:49:50 -07:00
Mattt Thompson
c7df7eacd5 Adding NSCoding and NSCopying conformance to AFHTTPClient 2012-08-15 10:22:07 -07:00
Mattt Thompson
e8c8367e99 Squashing compiler warnings in AFURLConnectionOperation -initWithCoder 2012-08-15 10:21:41 -07:00