Commit graph

555 commits

Author SHA1 Message Date
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
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
a144c8f0a7 Merge pull request #431 from tewha/patch-4
Fixes warning about using == on floats.
2012-08-04 12:17:58 -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
Mattt Thompson
762a3effa8 Merge pull request #425 from tewha/implicit-sign-conversion
Fixed sign conversion warning.
2012-07-23 18:32:21 -07:00
Steven Fisher
1037a807f5 Fixed warning.
containsIndex takes a NSUInteger, not a NSInteger. When CLANG_WARN_IMPLICIT_SIGN_CONVERSION is set, this generates a warning.
2012-07-23 17:11:54 -07:00
Mattt Thompson
877333a08e Merge pull request #422 from tewha/master
Fix to pull 420
2012-07-23 17:03:28 -07:00
Mattt Thompson
b9641edc81 Updating documentation for -pause
Returning early for -pause if operation is already cancelled
2012-07-23 16:22:48 -07:00
Mattt Thompson
70787ce4cf [Issue #398] Adding state checks to AFURLConnectionOperation -pause to prevent likely memry issues when cancelling a non-existint connection 2012-07-23 16:20:11 -07:00
Steven Fisher
cc35e61ff6 Merge branch 'master' of git://github.com/AFNetworking/AFNetworking 2012-07-23 14:49:03 -07:00
Mattt Thompson
9236e41850 Fixing documentation in AFHTTPClient -deletePath:... to indicate new default of encoding parameters in query string 2012-07-23 12:15:11 -07:00
Mattt Thompson
69ff0781b2 Minor refactoring of changes to AFNetworkActivityIndicatorManager
Slightly reducing invisibility delay
2012-07-23 12:05:21 -07:00
Mattt Thompson
e6bbfab2ad Merge branch 'fixes/ActivityThreading' of git://github.com/talko/AFNetworking 2012-07-23 11:54:40 -07:00
Steven Fisher
69da97c5a8 Cast NSInteger to long.
Per Apple's Platform Dependencies in String Programming Guide, casting NSInteger to long before using %lu.

https://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/Strings/Articles/formatSpecifiers.html#//apple_ref/doc/uid/TP40004265-SW5
2012-07-23 11:05:58 -07:00
David Keegan
b46284860d String formatting changes wanted by Xcode4.5 on Mountain Lion 2012-07-21 23:00:53 -07:00
Wen-Hao Lue
415ece4dd4 Making the assign attribute on properties explicit to suppress warnings on iOS 6 SDK. 2012-07-11 01:05:01 -07:00
Eric Patey
a8210a93bb Fix threading issue with AFNetworkActivityIndicatorManager.
Changed updateNetworkActivityIndicatorVisibilityDelayed
to use the main run loop rather than the current run loop
for its suppression timer.
Also, avoided extra dispatch to the main queue when not needed.
2012-07-10 21:12:54 -04:00
Mattt Thompson
7fda89e4a2 [Issue #379] Fixing AFHTTPRequestOperation +canProcessRequest: 2012-06-28 15:51:55 -07:00
Taeho Kim
61047bac76 Avoid AFHTTPClient adding an unnecessary parameter when constructing a multipart request with nil parameters. 2012-06-21 22:13:04 +09:00
Mattt Thompson
d1e993f1fd Merge pull request #376 from AFNetworking/experimental-default-http-pipelining
Automatically use HTTP pipelining for GET and HEAD requests in AFHTTPClient
2012-06-19 11:08:45 -07:00
Mattt Thompson
4afd15bfa0 Improving documentation for UIImageView+AFNetworking 2012-06-16 13:23:50 -07:00
Mattt Thompson
a0f592c23a [Issue #375] Restore support for non-GCC compilers in AFNetworkActivityIndicatorManager 2012-06-14 08:50:49 -07:00
Mattt Thompson
286b8100c5 [Issue #368] Checking for non-zero data length before attempting to append to write to output stream in multipart form data builder 2012-06-13 14:54:31 -07:00
Mattt Thompson
af99154694 Automatically use HTTP pipelining for GET and HEAD requests in AFHTTPClient 2012-06-13 14:44:46 -07:00
Mattt Thompson
d7852c19e1 Reformatting method signatures in multipart form builder implementation 2012-06-12 08:20:08 -07:00
Mattt Thompson
6b9187b6c2 Close the stream and return the original request if no data has been written for multipart request form data 2012-06-12 08:01:50 -07:00
Mattt Thompson
8432cb7dfd Adding additional note about not ever really having to manually increment or decrement the activity count on AFNetworkActivityIndicatorManager 2012-06-11 07:57:33 -07:00
Mattt Thompson
5c26d435bf Removing @private variable declaration 2012-06-11 07:31:40 -07:00
Mattt Thompson
512a513ace [Issue 370] Remove unnecessary dispatch_retain for dispatchGroup in enqueueBatchOfHTTPRequestOperations... 2012-06-11 07:26:25 -07:00
Mattt Thompson
2071196450 Merge pull request #368 from AFNetworking/experimental-multipart-streaming
Multipart Upload Streaming
2012-06-11 07:19:00 -07:00
Mattt Thompson
9b515d4ebe Code reformatting and adding conditional callback queue dispatch to UIImage callback 2012-06-09 09:52:28 -04:00
Sergey Gavrilyuk
91d4614028 in case there is an image processing block, success block should be called on the same queue as without one. 2012-06-08 15:44:42 -04:00
Mattt Thompson
90db2543d7 Initial implementation of streaming multipart uploads by writing form body to temporary file 2012-06-05 08:56:27 -07:00
Mattt Thompson
aa5c3783ea Minor refactoring, code formatting, and documentation changes 2012-05-25 15:03:19 -07:00
Mattt Thompson
d17b2998d7 Merge branch 'url-redirect-block' of https://github.com/kcharwood/AFNetworking into kcharwood-url-redirect-block 2012-05-25 14:43:14 -07:00
Mattt Thompson
71610bbd3c Merge pull request #345 from tewha/patch-1
#import UIKit in AFURLConnectionOperation
2012-05-25 14:24:27 -07:00
Mattt Thompson
f02c501e93 [Issue #347] Removing deprecated cacheName parameter in AFImageRequestOperation 2012-05-25 14:15:12 -07:00
Steven Fisher
985d8cfd51 AFURLConnectionOperation.m should #import UIKit, instead of relying on the prefix including it. 2012-05-24 16:24:53 -07:00
Kevin Harwood
cd788cea8a Added URL Redirect Block 2012-05-24 14:45:01 -05:00
Mattt Thompson
09a8b1dbcf Merge branch 'master' of github.com:AFNetworking/AFNetworking 2012-05-24 09:43:17 -07:00
Mattt Thompson
170b3f0656 [Issue #342] Removing URL encoding normalization 2012-05-24 09:35:31 -07:00