Skip to content

Commit

Permalink
ADD: Added ResponseData property to YTKBaseRequest
Browse files Browse the repository at this point in the history
Change-Id: I448970a0494469fdd8173e8377866e54c3a21a81
  • Loading branch information
lancy committed Dec 28, 2015
1 parent d1b7c08 commit 6c5ed21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion YTKNetwork/YTKBaseRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ typedef void (^AFDownloadProgressBlock)(AFDownloadRequestOperation *operation, N
/// request delegate object
@property (nonatomic, weak) id<YTKRequestDelegate> delegate;


@property (nonatomic, strong, readonly) NSDictionary *responseHeaders;

@property (nonatomic, strong, readonly) NSData *responseData;

@property (nonatomic, strong, readonly) NSString *responseString;

@property (nonatomic, strong, readonly) id responseJSONObject;
Expand Down
4 changes: 4 additions & 0 deletions YTKNetwork/YTKBaseRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ - (id)responseJSONObject {
return self.requestOperation.responseObject;
}

- (NSData *)responseData {
return self.requestOperation.responseData;
}

- (NSString *)responseString {
return self.requestOperation.responseString;
}
Expand Down

0 comments on commit 6c5ed21

Please sign in to comment.