mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-04-24 00:00:03 +08:00
Add global redirection control
copied from https://github.com/wymsee/cordova-HTTP/pull/137
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user