Skip to content

Instantly share code, notes, and snippets.

@flandy84
Created March 4, 2012 13:16
Show Gist options
  • Select an option

  • Save flandy84/1972949 to your computer and use it in GitHub Desktop.

Select an option

Save flandy84/1972949 to your computer and use it in GitHub Desktop.
optimized Objective-C Header File
//.h File optimized Objective-C Class Header
@interface SimpleHttpRequest : NSObject
@property (nonatomic, weak) id delegate;
@property (nonatomic, assign) SEL didFailSelector;
@property (nonatomic, copy, readonly) NSURLRequest* urlrequest;
+(SimpleHttpRequest *)requestWithNSURLRequest:(NSURLRequest*)urlrequest;
-(void)startAsynchronous;
-(void)cancel;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment