00001 // 00002 // HRRequestOperation.h 00003 // HTTPRiot 00004 // 00005 // Created by Justin Palmer on 1/30/09. 00006 // Copyright 2009 LabratRevenge LLC.. All rights reserved. 00007 // 00008 #import <Foundation/Foundation.h> 00009 #import "HRGlobal.h" 00010 #import "HRResponseDelegate.h" 00011 00017 @interface HRRequestOperation : NSOperation { 00019 NSObject <HRResponseDelegate>*_delegate; 00020 00022 NSURLConnection *_connection; 00023 00025 NSMutableData *_responseData; 00026 00028 NSString *_path; 00029 00031 NSDictionary *_options; 00032 00034 NSTimeInterval _timeout; 00035 00037 HRRequestMethod _requestMethod; 00038 00040 id _formatter; 00041 00043 id _object; 00044 00046 BOOL _isFinished; 00047 00049 BOOL _isExecuting; 00050 00052 BOOL _isCancelled; 00053 } 00054 00056 00060 @property (nonatomic, readonly, assign) NSObject <HRResponseDelegate>*delegate; 00061 00063 00067 @property (nonatomic, assign) NSTimeInterval timeout; 00068 00070 00073 @property (nonatomic, assign) HRRequestMethod requestMethod; 00074 00076 00080 @property (nonatomic, copy) NSString *path; 00081 00083 00086 @property (nonatomic, retain) NSDictionary *options; 00087 00089 00092 @property (nonatomic, readonly, retain) id formatter; 00093 00097 + (HRRequestOperation *)requestWithMethod:(HRRequestMethod)method path:(NSString*)urlPath options:(NSDictionary*)requestOptions object:(id)obj; 00098 @end