Skip to content

Commit 7a9e330

Browse files
dulacpBlake Watters
authored and
Blake Watters
committed
Use bit maskabled values for the RKRequestMethod enum
1 parent 2a7fc01 commit 7a9e330

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Code/ObjectMapping/RKHTTPUtilities.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
HTTP methods for requests
2525
*/
2626
typedef enum RKRequestMethod {
27-
RKRequestMethodInvalid = -1,
28-
RKRequestMethodGET,
29-
RKRequestMethodPOST,
30-
RKRequestMethodPUT,
31-
RKRequestMethodDELETE,
32-
RKRequestMethodHEAD,
33-
RKRequestMethodPATCH,
34-
RKRequestMethodOPTIONS
27+
RKRequestMethodInvalid = -1,
28+
RKRequestMethodGET = 1 << 0,
29+
RKRequestMethodPOST = 1 << 1,
30+
RKRequestMethodPUT = 1 << 2,
31+
RKRequestMethodDELETE = 1 << 3,
32+
RKRequestMethodHEAD = 1 << 4,
33+
RKRequestMethodPATCH = 1 << 5,
34+
RKRequestMethodOPTIONS = 1 << 6
3535
} RKRequestMethod; // RKHTTPMethod? RKStringFromHTTPMethod... RKHTTPMethodFromString
3636

3737
/**

0 commit comments

Comments
 (0)