MugunthKumar/MKNetworkKit — Issue #7: Read-only property to get HTTP Method from MKNetworkOperation
Author: rsieiro
Created: 2011-12-11 02:27:55+00:00
State: open

I'm currently writing an OAuth consumer that uses MKNetworkKit. I'm using several properties from MKNetworkOperation, and the only info that I can't find a simple way to obtain is the HTTP Method of the request.

I know I could get it from `readonlyRequest`, but since it copies the whole request to a new instance I believe it's overkill to use it. I also didn't want to fork the whole project just to add one property (unless that's how I should use GitHub, I'm kinda new to all this) so currently I just added the property to my local copy. But since I want to release my code later, it would be better if it could work with MKNetworkKit without needing any modifications.

Is there any chance you could add such property to this project? Here's how I implemented it (inside MKNetworkOperation):

@property (nonatomic, readonly) NSString *HTTPMethod;

-(NSString*) HTTPMethod {
return self.request.HTTPMethod;
}

Thanks!