猎豆优选

TBSDKRequestDelegate.h 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // '########'########::'######:'########:'##:::'##:
  2. // ... ##..::##.... ##'##... ##:##.... ##:##::'##::
  3. // ::: ##::::##:::: ##:##:::..::##:::: ##:##:'##:::
  4. // ::: ##::::########:. ######::##:::: ##:#####::::
  5. // ::: ##::::##.... ##:..... ##:##:::: ##:##. ##:::
  6. // ::: ##::::##:::: ##'##::: ##:##:::: ##:##:. ##::
  7. // ::: ##::::########:. ######::########::##::. ##:
  8. // :::..::::........:::......::........::..::::..::
  9. //
  10. // Created by 亿刀 on 13-1-30.
  11. // Copyright (c) 2013年 Taobao. All rights reserved.
  12. //
  13. #import "TBSDKRequest.h"
  14. @protocol TBSDKRequestDelegate <NSObject>
  15. @optional
  16. - (void)requestStarted:(TBSDKRequest *)request;
  17. - (void)request:(TBSDKRequest *)request didReceiveResponseHeaders:(NSDictionary *)responseHeaders;
  18. - (void)requestFinished:(TBSDKRequest *)request;
  19. - (void)requestFailed:(TBSDKRequest *)request;
  20. - (void)request:(TBSDKRequest *)request didReceiveData:(NSData *)data;
  21. - (void)request:(TBSDKRequest *)request didLoadCacheResponseHeader:(NSDictionary *)responseHeader body:(NSString *)responseString;
  22. - (NSArray *)requestSaveCache:(TBSDKRequest *)request responseHeader:(NSDictionary *)responseHeader body:(NSString *)responseDataString;
  23. @end
  24. @protocol TBSDKRequestDataSource <NSObject>
  25. @required
  26. - (NSURL *)requestURL;
  27. @optional
  28. - (NSDictionary *)requestPostValue;
  29. - (BOOL)reuquestIsPost;
  30. - (NSArray *)requestPostData;
  31. - (NSDictionary *)httpRequestHeader;
  32. @end