Commit graph

749 commits

Author SHA1 Message Date
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
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
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
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
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
Mattt Thompson
19a491b45b Adding additional details in NSCopying / NSCopying documentation about stream properties 2012-08-15 10:03:46 -07:00
Mattt Thompson
7132b96124 Adding documentation for NSCoding / NSCopying behavior
Minor fixes to -copyWithZone:

Minor refactoring of -encodeWithCoder:
2012-08-15 09:59:00 -07:00
Mattt Thompson
a862d3b596 Adding method signature for -cancelConnection in AFURLConnectionOperation class extension 2012-08-15 08:21:54 -07:00
Mattt Thompson
8309f39c40 Removing unused kAFHTTPMinimumInitialDataCapacity and kAFHTTPMaximumInitialDataCapacity constants 2012-08-15 08:19:42 -07:00
Mattt Thompson
248ab6d8b8 Renaming AFOperationState enum values to remove HTTP prefix 2012-08-15 08:18:55 -07:00
Mattt Thompson
9ed38fd30a Initial implementation of NSCoding and NSCopying support 2012-08-15 08:16:42 -07:00
Mattt Thompson
b3d63b58c0 Use requestWithURL: instead of requestWithURL:cachePolicy:timeout: in UIImageView category to use default cache policy and timeout 2012-08-13 13:19:51 -07:00
Mattt Thompson
7df67b1124 Merge branch 'uiimage-accept-header' of git://github.com/smokinguns/AFNetworking into smokinguns-uiimage-accept-header 2012-08-13 13:12:11 -07:00
Mattt Thompson
782862bd6f [Issue #449] Fixing bug where tempfiles for multipart form message bodies could collide, specifically for requests with the same URL 2012-08-12 19:08:58 -04:00
bratley Lower
59ef3550d5 add accept header for set uiimage by url 2012-08-12 09:52:31 -05:00
Mattt Thompson
481033ae0c Minor code reformatting and inline documentation 2012-08-11 14:26:03 -04:00
Mattt Thompson
a83712c1f0 Merge branch 'patch-8' of git://github.com/tewha/AFNetworking into tewha-patch-8 2012-08-11 14:20:19 -04:00
Mattt Thompson
3d6fcc35c9 Moving error alert logic from models to controllers 2012-08-11 11:16:55 -04:00
Mattt Thompson
fbc4ec5dbd Adding responseString as NSLocalizedRecoverySuggestionErrorKey in errors for unacceptable content type and status code 2012-08-11 11:12:02 -04:00
Steven Fisher
f849627f9a initWithBaseURL
Fixes 446. If the URL passed into initWithBaseURL is a file URL rather
than a directory URL we will fix it.

Without this fix, if you provide "http://myhost/api" as a baseURL and
try to get "path", AFNetworking will get http://myhost/path instead of
http://myhost/api/path. With the fix, we'll change http://myhost/api to
http://myhost/api/.
2012-08-08 11:07:20 -07:00
Mattt Thompson
bff368c096 Using NSOperationQueueDefaultMaxConcurrentOperationCount rather than previously-specified constant (k=4) 2012-08-06 17:30:01 -04:00
Mattt Thompson
5cac0fea1b Removing leftover methods and functions from download operation patch 2012-08-06 17:22:34 -04:00
Mattt Thompson
b494bfe3fb Adding NSURLConnection delegate method declarations in the AFURLConnection header to allow subclasses to call out to super implementation. Will be removed in 1.0, since iOS 5 / Mac OS 10.7 defined these as a formal protocol. 2012-08-04 15:48:01 -04:00
Mattt Thompson
c9680e1246 [Issue #411] Dispatching upload/download progress blocks to the main queue 2012-08-04 15:34:09 -04:00
Mattt Thompson
84eae9d31e Merge pull request #430 from tewha/patch-3
Small README formatting fix
2012-08-04 12:22:06 -07:00
Mattt Thompson
a144c8f0a7 Merge pull request #431 from tewha/patch-4
Fixes warning about using == on floats.
2012-08-04 12:17:58 -07:00
Mattt Thompson
3f32f8e660 Merge pull request #442 from tewha/patch-6
Fixed comment
2012-08-04 11:58:49 -07:00
Steven Fisher
1d82992f36 Fixed comment
Grammar problem in comment. Minor and easy to miss.
2012-08-03 19:56:48 -07:00
Steven Fisher
eafbfec11c Fixes warning about using == on floats.
If the value changes from near to 2.0 to some other near 2.0, it's fine to recalculate.

Thus, use #pragma clang diagnostic to explicitly turn off the float-equal warning.
2012-07-24 12:36:25 -07:00
Steven Fisher
8e2da876d9 Small README fix
Markdown for code syntax does not work in a table cell. Now using <tt>.
2012-07-23 19:26:51 -07:00
Mattt Thompson
762a3effa8 Merge pull request #425 from tewha/implicit-sign-conversion
Fixed sign conversion warning.
2012-07-23 18:32:21 -07:00