[Issue #887] [Issue #1096] Removing implementation of connection:needNewBodyStream:

This commit is contained in:
Mattt Thompson 2013-09-24 12:53:22 -07:00
parent 9faa5ba2b6
commit ca1737c5e0
2 changed files with 0 additions and 14 deletions

View file

@ -44,7 +44,6 @@
- `connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:`
- `connection:willCacheResponse:`
- `connectionShouldUseCredentialStorage:`
- `connection:needNewBodyStream:`
- `connection:willSendRequestForAuthenticationChallenge:`
If any of these methods are overridden in a subclass, they _must_ call the `super` implementation first.
@ -293,7 +292,6 @@ NSCoding, NSCopying>
*/
- (void)setRedirectResponseBlock:(NSURLRequest * (^)(NSURLConnection *connection, NSURLRequest *request, NSURLResponse *redirectResponse))block;
/**
Sets a block to be executed to modify the response a connection will cache, if any, as handled by the `NSURLConnectionDelegate` method `connection:willCacheResponse:`.

View file

@ -687,18 +687,6 @@ willSendRequestForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challe
return self.shouldUseCredentialStorage;
}
- (NSInputStream *)connection:(NSURLConnection __unused *)connection
needNewBodyStream:(NSURLRequest *)request
{
if ([request.HTTPBodyStream conformsToProtocol:@protocol(NSCopying)]) {
return [request.HTTPBodyStream copy];
} else {
[self cancelConnection];
return nil;
}
}
- (NSURLRequest *)connection:(NSURLConnection *)connection
willSendRequest:(NSURLRequest *)request
redirectResponse:(NSURLResponse *)redirectResponse