root / asi-http-request-with-pithos / Classes / ASIHTTPRequestDelegate.h @ be116d22
History | View | Annotate | Download (1.6 kB)
1 |
//
|
---|---|
2 |
// ASIHTTPRequestDelegate.h
|
3 |
// Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest
|
4 |
//
|
5 |
// Created by Ben Copsey on 13/04/2010.
|
6 |
// Copyright 2010 All-Seeing Interactive. All rights reserved.
|
7 |
//
|
8 |
|
9 |
@class ASIHTTPRequest;
|
10 |
|
11 |
@protocol ASIHTTPRequestDelegate <NSObject>
|
12 |
|
13 |
@optional
|
14 |
|
15 |
// These are the default delegate methods for request status
|
16 |
// You can use different ones by setting didStartSelector / didFinishSelector / didFailSelector
|
17 |
- (void)requestStarted:(ASIHTTPRequest *)request;
|
18 |
- (void)request:(ASIHTTPRequest *)request didReceiveResponseHeaders:(NSDictionary *)responseHeaders;
|
19 |
- (void)request:(ASIHTTPRequest *)request willRedirectToURL:(NSURL *)newURL;
|
20 |
- (void)requestFinished:(ASIHTTPRequest *)request;
|
21 |
- (void)requestFailed:(ASIHTTPRequest *)request;
|
22 |
- (void)requestRedirected:(ASIHTTPRequest *)request;
|
23 |
|
24 |
// When a delegate implements this method, it is expected to process all incoming data itself
|
25 |
// This means that responseData / responseString / downloadDestinationPath etc are ignored
|
26 |
// You can have the request call a different method by setting didReceiveDataSelector
|
27 |
- (void)request:(ASIHTTPRequest *)request didReceiveData:(NSData *)data;
|
28 |
|
29 |
// If a delegate implements one of these, it will be asked to supply credentials when none are available
|
30 |
// The delegate can then either restart the request ([request retryUsingSuppliedCredentials]) once credentials have been set
|
31 |
// or cancel it ([request cancelAuthentication])
|
32 |
- (void)authenticationNeededForRequest:(ASIHTTPRequest *)request;
|
33 |
- (void)proxyAuthenticationNeededForRequest:(ASIHTTPRequest *)request;
|
34 |
|
35 |
@end
|