00001
00002
00003
00004
00005
00006
00007
00008
00009 #import <Foundation/Foundation.h>
00010
00011 @class RMCall;
00012 @class ASIHTTPRequest;
00013 @protocol RMResultDelegate;
00014
00018 @interface RMResponse : NSObject {
00019 RMCall *parentCall;
00020 NSArray *delegateChain;
00021 ASIHTTPRequest *request;
00022 NSString *string;
00023 NSData *data;
00024 }
00025
00026
00027 + (id)responseWithCall:(RMCall*) call
00028 request:(ASIHTTPRequest*) request
00029 delegate:(NSArray*) delegateChain;
00030
00031 - (id)initWithCall:(RMCall*) call
00032 request:(ASIHTTPRequest*) request
00033 delegate:(NSArray*) delegateChain;
00034
00035 - (void)requestFinished:(ASIHTTPRequest*) request;
00036 - (void)requestFailed:(ASIHTTPRequest*) request;
00037
00038 - (NSString*) responseString;
00039 - (NSData*) responseData;
00040
00041 @end