- 18 Aug, 2010 11 commits
-
-
Make clientCertificates work with NSCopying, headRequest, and release it in dealloc
Ben Copsey authored -
Added a test for client certificates (iOS only) Attempt to fix, YET AGAIN, building for 10.6 and that stupid NSXMLParserDelegate
Ben Copsey authored -
Based on an idea from Jesse Rusak -> http://github.com/MindSea/asi-http-request/commit/f346f7f9de333501f732404323e8f73e911fbeea
Ben Copsey authored -
Ben Copsey authored
-
…at it gets the name of the correct bundle, such as in the case of a Preference Pane.
Justin Mecham authored -
Ben Copsey authored
-
Philipp Schmid authored
-
Ben Copsey authored
-
Ben Copsey authored
-
- 30 Jul, 2010 2 commits
-
-
Ben Copsey authored
-
Ben Copsey authored
-
- 27 Jul, 2010 8 commits
-
-
Ben Copsey authored
-
Ben Copsey authored
-
Joseph Heenan authored
-
Without this code, I found that adding assert(self.isCancelled) after [super cancel] resulting in the assert failing - ie. isCancelled was not returning true - when tested on an ipad running iOS 3.2.1 (not tested elsewhere).
Joseph Heenan authored -
…d are only sent at the point when finished is actually changed. Also only send notifications for isExecuting if it has changed state. (markAsFinished can be called more than once for cancelled requests)
Joseph Heenan authored -
Ben Copsey authored
-
Cancellation ends up addressing runloop objects and CF objects (and also accesses the runloop for the current thread), at least some of which will only work on the thread the request is running on. For example, cancel calls cancelLoad which calls destroyReadStream which needs to access the runloop for the request for this: [[self readStream] removeFromRunLoop:[NSRunLoop currentRunLoop] forMode:[self runLoopMode]];
Joseph Heenan authored
-
- 25 Jul, 2010 2 commits
-
-
It seems that notifying the NSOperationQueue we're complete before we start running causes a problem resulting in a crash. Hence, we avoid calling markAsFinished unless we're inprogress - main() will call it when we do start.
Joseph Heenan authored -
This can be used by clients to alter or inspect the queue. The most obvious use for this is calling setMaxConcurrentOperations: on the queue to alter the number of simultaneous requests that will be made over the network.
Joseph Heenan authored
-
- 24 Jul, 2010 2 commits
-
-
Philipp Schmid authored
-
Philipp Schmid authored
-
- 22 Jul, 2010 2 commits
-
-
Ben Copsey authored
-
Ben Copsey authored
-
- 18 Jul, 2010 1 commit
- 17 Jul, 2010 8 commits
-
-
Ben Copsey authored
-
Ben Copsey authored
-
(The cache only stores 200 response codes.) The client can still check if the cache was used or not by checking 'didUseCachedResponse'.
Joseph Heenan authored -
It is not safe to call retain on these objects unless we're on the main thread, as the main thread could have already started a dealloc() (but not reached the setDelegete:nil call) on the object when retain is called, potentially resulting in an object that is both retained and dealloced.
Joseph Heenan authored -
The previous mechanism can end up calling a delegate that has been removed by a setDelegate:nil, and hence may already be deallocated. Now we run a callback on the mainthread, which only dereferences the delegate/queue and selectors to be called when it runs on the main thread. The authenticationdelegate code is still using the old method. This should be looked at separately; it is slightly more complex as it needs to know if a delegate exists to be called.
Joseph Heenan authored
-
- 04 Jul, 2010 1 commit
-
-
Ben Copsey authored
-
- 02 Jul, 2010 3 commits
-
-
Ben Copsey authored
-
Ben Copsey authored
-