nst / STHTTPRequest

Obj-C / Cocoa HTTP requests for humans
BSD 3-Clause "New" or "Revised" License
825 stars 82 forks source link

setHTTPMethod should accept an enum type instead of String #26

Closed jasperblues closed 10 years ago

nst commented 10 years ago

The underlying NSURLRequest has a method setHTTPMethod: which takes a string as an argument, and not an enum. That's why I chose to use a string. Additionally, using an enum would imply defining a prefixed name to avoid conflicts, and probably wouldn't be as elegant as a simple string.