File tree Expand file tree Collapse file tree 2 files changed +17
-11
lines changed Expand file tree Collapse file tree 2 files changed +17
-11
lines changed Original file line number Diff line number Diff line change 6
6
7
7
- (void )setServerTrustMode : (CDVInvokedUrlCommand*)command ;
8
8
- (void )post : (CDVInvokedUrlCommand*)command ;
9
- - (void )get : (CDVInvokedUrlCommand*)command ;
10
9
- (void )put : (CDVInvokedUrlCommand*)command ;
11
10
- (void )patch : (CDVInvokedUrlCommand*)command ;
11
+ - (void )get : (CDVInvokedUrlCommand*)command ;
12
12
- (void )delete : (CDVInvokedUrlCommand*)command ;
13
+ - (void )head : (CDVInvokedUrlCommand*)command ;
14
+ - (void )options : (CDVInvokedUrlCommand*)command ;
13
15
- (void )uploadFiles : (CDVInvokedUrlCommand*)command ;
14
16
- (void )downloadFile : (CDVInvokedUrlCommand*)command ;
15
17
Original file line number Diff line number Diff line change @@ -302,6 +302,18 @@ - (void)setServerTrustMode:(CDVInvokedUrlCommand*)command {
302
302
[self .commandDelegate sendPluginResult: pluginResult callbackId: command.callbackId];
303
303
}
304
304
305
+ - (void )post : (CDVInvokedUrlCommand*)command {
306
+ [self executeRequestWithData: command withMethod: @" POST" ];
307
+ }
308
+
309
+ - (void )put : (CDVInvokedUrlCommand*)command {
310
+ [self executeRequestWithData: command withMethod: @" PUT" ];
311
+ }
312
+
313
+ - (void )patch : (CDVInvokedUrlCommand*)command {
314
+ [self executeRequestWithData: command withMethod: @" PATCH" ];
315
+ }
316
+
305
317
- (void )get : (CDVInvokedUrlCommand*)command {
306
318
[self executeRequestWithoutData: command withMethod: @" GET" ];
307
319
}
@@ -314,16 +326,8 @@ - (void)head:(CDVInvokedUrlCommand*)command {
314
326
[self executeRequestWithoutData: command withMethod: @" HEAD" ];
315
327
}
316
328
317
- - (void )post : (CDVInvokedUrlCommand*)command {
318
- [self executeRequestWithData: command withMethod: @" POST" ];
319
- }
320
-
321
- - (void )put : (CDVInvokedUrlCommand*)command {
322
- [self executeRequestWithData: command withMethod: @" PUT" ];
323
- }
324
-
325
- - (void )patch : (CDVInvokedUrlCommand*)command {
326
- [self executeRequestWithData: command withMethod: @" PATCH" ];
329
+ - (void )options : (CDVInvokedUrlCommand*)command {
330
+ [self executeRequestWithoutData: command withMethod: @" OPTIONS" ];
327
331
}
328
332
329
333
- (void )uploadFiles : (CDVInvokedUrlCommand*)command {
You can’t perform that action at this time.
0 commit comments