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.
The underlying
NSURLRequest
has a methodsetHTTPMethod:
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.