We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a7fc01 commit 7a9e330Copy full SHA for 7a9e330
Code/ObjectMapping/RKHTTPUtilities.h
@@ -24,14 +24,14 @@
24
HTTP methods for requests
25
*/
26
typedef enum RKRequestMethod {
27
- RKRequestMethodInvalid = -1,
28
- RKRequestMethodGET,
29
- RKRequestMethodPOST,
30
- RKRequestMethodPUT,
31
- RKRequestMethodDELETE,
32
- RKRequestMethodHEAD,
33
- RKRequestMethodPATCH,
34
- RKRequestMethodOPTIONS
+ RKRequestMethodInvalid = -1,
+ RKRequestMethodGET = 1 << 0,
+ RKRequestMethodPOST = 1 << 1,
+ RKRequestMethodPUT = 1 << 2,
+ RKRequestMethodDELETE = 1 << 3,
+ RKRequestMethodHEAD = 1 << 4,
+ RKRequestMethodPATCH = 1 << 5,
+ RKRequestMethodOPTIONS = 1 << 6
35
} RKRequestMethod; // RKHTTPMethod? RKStringFromHTTPMethod... RKHTTPMethodFromString
36
37
/**
0 commit comments