Commit graph

102 commits

Author SHA1 Message Date
Dustin Barker
07c9f6c358 Add optional SSL certificate pinning 2012-12-26 09:40:37 -05:00
Mattt Thompson
0f35164082 Merge branch 'fixes-for-strict-warnings' of https://github.com/ittybittyapps/AFNetworking into ittybittyapps-fixes-for-strict-warnings
Conflicts:
	AFNetworking/AFHTTPClient.m
	AFNetworking/AFHTTPRequestOperation.m
	AFNetworking/AFImageRequestOperation.h
	AFNetworking/AFNetworking.h
	AFNetworking/AFURLConnectionOperation.m
2012-11-30 15:09:11 -08:00
Mattt Thompson
607e91b5b8 Adding responseStringEncoding property to AFURLConnectionOperation 2012-11-30 14:11:59 -08:00
Oliver Jones
d8b4dcb349 Fixes warning: 'macro' is not defined, evaluates to 0 2012-11-30 17:59:50 +11:00
Oliver Jones
f4d25341cf Fixing tabs/spaces whitespace inconsistency. 2012-11-29 19:08:41 +11:00
Oliver Jones
3997dbb7e9 Fixes warning: multiple methods named 'selector' found [-Werror,-Wstrict-selector-match] 2012-11-29 18:46:04 +11:00
Oliver Jones
23b8fe33ba Fixes warning: weak receiver may be unpredictably null in ARC mode [-Werror,-Wreceiver-is-weak] 2012-11-29 18:30:28 +11:00
Oliver Jones
3486a008a1 Fixing warnings: implicit conversion changes signedness: 'NSInteger' (aka 'long') to 'unsigned long' [-Werror,-Wsign-conversion] 2012-11-29 17:53:30 +11:00
Mattt Thompson
247863cfc2 [Issue #633] Manually casting scalar types in initWithCoder for AFURLConnectionOperation and AFHTTPClient 2012-11-09 07:31:53 -08:00
Mattt Thompson
24dfebb424 Merge branch 'master' of github.com:AFNetworking/AFNetworking 2012-11-06 09:22:04 -08:00
Mattt Thompson
5ec794dc4d Indenting macro conditionals 2012-11-06 09:21:41 -08:00
Christian Rasmussen
940f42dade [#624] Moved __unused keywords for better Xcode indexing. 2012-11-05 21:33:56 +01:00
Mattt Thompson
175c3fa451 [Issue #565] Checking for kCFStringEncodingInvalidId from CFStringConvertIANACharSetNameToEncoding() before getting NSStringEncoding with CFStringConvertEncodingToNSStringEncoding, which may otherwise lead to unexpected behavior 2012-10-31 08:37:47 -07:00
Mattt Thompson
d31e23af29 [Issue #603] Removing duplicated runloop scheduling of outputStream 2012-10-31 08:27:10 -07:00
Mattt Thompson
4b2c2818a1 Using conventional weak/strong self pattern to break retain cycle in background tasks 2012-10-31 07:49:44 -07:00
Mattt Thompson
953dfbcfbc Using __weak reference in setCompletionBlock: 2012-10-31 07:45:13 -07:00
Jerry Beers
c3bc36abd7 Break retain cycle for background tasks 2012-10-31 07:43:34 -07:00
Mattt Thompson
ddf43e1122 Revert "Using NS_ENUM in place of typedef enum"
This reverts commit ae1d419cd4.
2012-10-09 17:38:08 -07:00
Mattt Thompson
ae1d419cd4 Using NS_ENUM in place of typedef enum 2012-10-09 09:46:30 -07:00
Mattt Thompson
d933fe60e7 Fixing warnings triggered by -Weverything flag
Adding __attribute__((noreturn)) to networkRequestThreadEntryPoint
2012-10-01 10:43:12 -07:00
Steven Fisher
6a0b052659 Add error when building without ARC to a central file. 2012-09-26 16:47:56 -07:00
Mattt Thompson
c8380168f8 Merge branch '1.0RC2' 2012-09-14 10:59:18 -07:00
Mattt Thompson
42fecdc138 Merge branch 'stream-rl-fix' of https://github.com/sptramer/AFNetworking into sptramer-stream-rl-fix
Conflicts:
	AFNetworking/AFURLConnectionOperation.m
2012-09-14 10:52:55 -07:00
Mattt Thompson
ff37bb59f8 Merge branch 'master' into 1.0RC2
Conflicts:
	AFNetworking/AFHTTPClient.m
	AFNetworking/AFHTTPRequestOperation.m
	AFNetworking/AFJSONRequestOperation.m
	AFNetworking/AFNetworkActivityIndicatorManager.m
	AFNetworking/AFURLConnectionOperation.h
2012-09-14 10:30:25 -07:00
Mattt Thompson
a4508ac997 [Issue #507] Fixing potential issues with output stream runloop scheduling 2012-09-14 09:21:23 -07:00
Stephen Tramer
9ffd2226b3 [BUGFIX] Avoid common output stream setup errors, including immediately scheduling the stream on a runloop. 2012-09-10 13:17:04 -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
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
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
c0ef5c1068 Replacing NSAutoreleasePool with @autoreleasepool 2012-08-21 16:06:39 -07:00
Mattt Thompson
e8c8367e99 Squashing compiler warnings in AFURLConnectionOperation -initWithCoder 2012-08-15 10:21:41 -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
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
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
Mattt Thompson
ae340b19e9 Removing whitespace leftover in dealloc from migration 2012-07-03 07:20:15 -07:00
Mattt Thompson
f1b3101a63 First pass at converting to ARC 2012-06-26 09:14:52 -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
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
2f79428e34 [Issue #323] Close existing outputStream in setOutputStream: 2012-05-01 08:04:29 -07:00
Mattt Thompson
7e16e13a3a Merge branch 'experimental-1.0RC1' into experimental-pause-resume
Conflicts:
	AFNetworking/AFURLConnectionOperation.h
	AFNetworking/AFURLConnectionOperation.m
2012-04-24 20:42:59 -07:00
Mattt Thompson
7697140bf9 Merge branch 'master' into experimental-1.0RC1
Conflicts:
	AFNetworking/AFHTTPRequestOperation.h
	AFNetworking/AFHTTPRequestOperation.m
2012-04-24 20:36:43 -07:00
Mattt Thompson
701a60a10f Merge branch 'master' into experimental-pause-resume
Conflicts:
	AFNetworking/AFHTTPRequestOperation.h
	AFNetworking/AFHTTPRequestOperation.m
2012-04-24 20:27:37 -07:00