This commit is contained in:
parent
9faa5ba2b6
commit
ca1737c5e0
2 changed files with 0 additions and 14 deletions
|
|
@ -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:`.
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue