topical media & game development

talk show tell print

#mobile-application-10-DerbyApp-build-iphone-Classes-ASI-ASIHTTPRequestDelegate.h / h



  //
  //  ASIHTTPRequestDelegate.h
  //  Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest
  //
  //  Created by Ben Copsey on 13/04/2010.
  //  Copyright 2010 All-Seeing Interactive. All rights reserved.
  //
  
  
  
  @protocol ASIHTTPRequestDelegate <NSObject>
  
  @optional
  
  // These are the default delegate methods for request status
  // You can use different ones by setting didStartSelector / didFinishSelector / didFailSelector
  (void)requestStarted:(ASIHTTPRequest *)request;
  (void)requestReceivedResponseHeaders:(ASIHTTPRequest *)request;
  (void)requestFinished:(ASIHTTPRequest *)request;
  (void)requestFailed:(ASIHTTPRequest *)request;
  
  // When a delegate implements this method, it is expected to process all incoming data itself
  // This means that responseData / responseString / downloadDestinationPath etc are ignored
  // You can have the request call a different method by setting didReceiveDataSelector
  (void)request:(ASIHTTPRequest *)request didReceiveData:(NSData *)data;
  
  // If a delegate implements one of these, it will be asked to supply credentials when none are available
  // The delegate can then either restart the request ([request retryUsingSuppliedCredentials]) once credentials have been set
  // or cancel it ([request cancelAuthentication])
  (void)authenticationNeededForRequest:(ASIHTTPRequest *)request;
  (void)proxyAuthenticationNeededForRequest:(ASIHTTPRequest *)request;
  
  @end
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.