Swiftgram/Classes/BITHTTPOperation.h
Stephan Diederich 447d850207 provide access to the response
e.g. http status codes
2013-08-15 22:27:49 +02:00

27 lines
658 B
Objective-C

//
// BITHTTPOperation.h
// HockeySDK
//
// Created by Stephan Diederich on 10.08.13.
//
//
#import <Foundation/Foundation.h>
@class BITHTTPOperation;
typedef void (^BITNetworkCompletionBlock)(BITHTTPOperation* operation, id response, NSError* error);
@interface BITHTTPOperation : NSOperation
+ (instancetype) operationWithRequest:(NSURLRequest *) urlRequest;
@property (nonatomic, readonly) NSURLRequest *URLRequest;
- (void) setCompletion:(BITNetworkCompletionBlock) completionBlock;
@property (nonatomic, readonly) NSHTTPURLResponse *response;
@property (nonatomic, readonly) NSData *data;
@property (nonatomic, readonly) NSError *error;
@end