Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (31 sloc) 1.181 kb
// LRURLConnectionOperation.h
// LRResty
// Created by Luke Redpath on 04/10/2010.
// Copyright 2010 LJR Software Limited. All rights reserved.
#import <Foundation/Foundation.h>
@interface LRURLRequestOperation : NSOperation {
BOOL _isExecuting;
BOOL _isFinished;
NSURLRequest *URLRequest;
NSURLResponse *URLResponse;
NSURLConnection *URLConnection;
NSError *connectionError;
NSMutableData *responseData;
@property (nonatomic, strong) NSURLRequest *URLRequest;
@property (nonatomic, strong, readonly) NSURLResponse *URLResponse;
@property (nonatomic, strong, readonly) NSError *connectionError;
@property (nonatomic, strong, readonly) NSData *responseData;
- (id)initWithURLRequest:(NSURLRequest *)request;
- (void)finish;
- (void)cancelImmediately;
@interface LRURLRequestOperation (NSURLConnectionDelegate)
- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)theResponse;
- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data;
- (void)connectionDidFinishLoading:(NSURLConnection *)connection;
- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error;
Jump to Line
Something went wrong with that request. Please try again.