Ignite Tools
Shared/Airship/External/UA_asi-http-request/UA_ASIHTTPRequestDelegate.h
00001 //
00002 //  UA_ASIHTTPRequestDelegate.h
00003 //  Part of UA_ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest
00004 //
00005 //  Created by Ben Copsey on 13/04/2010.
00006 //  Copyright 2010 All-Seeing Interactive. All rights reserved.
00007 //
00008 
00009 @class UA_ASIHTTPRequest;
00010 
00011 @protocol UA_ASIHTTPRequestDelegate <NSObject>
00012 
00013 @optional
00014 
00015 // These are the default delegate methods for request status
00016 // You can use different ones by setting didStartSelector / didFinishSelector / didFailSelector
00017 - (void)requestStarted:(UA_ASIHTTPRequest *)request;
00018 - (void)request:(UA_ASIHTTPRequest *)request didReceiveResponseHeaders:(NSDictionary *)responseHeaders;
00019 - (void)request:(UA_ASIHTTPRequest *)request willRedirectToURL:(NSURL *)newURL;
00020 - (void)requestFinished:(UA_ASIHTTPRequest *)request;
00021 - (void)requestFailed:(UA_ASIHTTPRequest *)request;
00022 - (void)requestRedirected:(UA_ASIHTTPRequest *)request;
00023 
00024 // When a delegate implements this method, it is expected to process all incoming data itself
00025 // This means that responseData / responseString / downloadDestinationPath etc are ignored
00026 // You can have the request call a different method by setting didReceiveDataSelector
00027 - (void)request:(UA_ASIHTTPRequest *)request didReceiveData:(NSData *)data;
00028 
00029 // If a delegate implements one of these, it will be asked to supply credentials when none are available
00030 // The delegate can then either restart the request ([request retryUsingSuppliedCredentials]) once credentials have been set
00031 // or cancel it ([request cancelAuthentication])
00032 - (void)authenticationNeededForRequest:(UA_ASIHTTPRequest *)request;
00033 - (void)proxyAuthenticationNeededForRequest:(UA_ASIHTTPRequest *)request;
00034 
00035 @end
 All Classes Functions Variables Properties