Add global redirection control

copied from https://github.com/wymsee/cordova-HTTP/pull/137
This commit is contained in:
Martin Kasa
2017-09-29 14:36:00 +02:00
parent 66dc8ff2ca
commit a4a6440bcb
14 changed files with 65 additions and 0 deletions
+5
View File
@@ -56,6 +56,11 @@ Set a header for all future requests. Takes a header and a value.
cordovaHTTP.setHeader("Header", "Value");
### disableRedirect
If set to `true`, it won't follow redirects automatically. This is a global setting.
cordovaHTTP.disableRedirect(true);
### setDataSerializer
Set the data serializer which will be used for all future POST and PUT requests. Takes a string representing the name of the serializer.