Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Support for the PUT method

  • Loading branch information...
commit 584938d5650838e945463a18277ce85187d8ceb7 1 parent ed612a9
Brent Royal-Gordon authored
Showing with 5 additions and 1 deletion.
  1. +2 −1  ANRequest.h
  2. +3 −0  ANRequest.m
View
3  ANRequest.h
@@ -14,7 +14,8 @@
typedef enum {
ANRequestMethodGet,
ANRequestMethodPost,
- ANRequestMethodDelete
+ ANRequestMethodDelete,
+ ANRequestMethodPut
} ANRequestMethod;
typedef enum {
View
3  ANRequest.m
@@ -50,6 +50,9 @@ - (NSString*)methodString {
case ANRequestMethodDelete:
return @"DELETE";
+ case ANRequestMethodPut:
+ return @"PUT";
+
default:
NSAssert(NO, @"Unknown method %d", self.method);
return nil;
Please sign in to comment.
Something went wrong with that request. Please try again.