cordova-plugin-http
Advanced tools
Comparing version 1.0.3 to 1.1.0
# Changelog | ||
## v1.1.0 | ||
- Fixed the body of errors not being returned in iOS | ||
- Updated AFNetworking to 3.1.0 | ||
### Potentially Breaking Changes | ||
- Disable encoding get() URLS in android (Thanks to devgeeks) | ||
## v1.0.3 | ||
- Fixed version number in plugin.xml | ||
## v1.0.2 | ||
- Fixed bug using useBasicAuth and setHeader from angular | ||
## v1.0.1 | ||
- updated README | ||
## v1.0.0 | ||
@@ -4,0 +25,0 @@ |
{ | ||
"name": "cordova-plugin-http", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "Cordova / Phonegap plugin for communicating with HTTP servers using SSL pinning", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -95,7 +95,10 @@ cordovaHTTP | ||
#### success | ||
The success function receives a response object with 2 properties: status and data. Status is the HTTP response code and data is the response from the server as a string. Here's a quick example: | ||
The success function receives a response object with 3 properties: status, data, and headers. Status is the HTTP response code. Data is the response from the server as a string. Headers is an object with the headers. Here's a quick example: | ||
{ | ||
status: 200, | ||
data: "{'id': 12, 'message': 'test'}" | ||
data: "{'id': 12, 'message': 'test'}", | ||
headers: { | ||
"Content-Length": "247" | ||
} | ||
} | ||
@@ -128,7 +131,10 @@ | ||
#### failure | ||
The error function receives a response object with 2 properties: status and error. Status is the HTTP response code. Error is the error response from the server as a string. Here's a quick example: | ||
The error function receives a response object with 3 properties: status, error and headers. Status is the HTTP response code. Error is the error response from the server as a string. Headers is an object with the headers. Here's a quick example: | ||
{ | ||
status: 403, | ||
error: "Permission denied" | ||
error: "Permission denied", | ||
headers: { | ||
"Content-Length": "247" | ||
} | ||
} | ||
@@ -186,13 +192,8 @@ | ||
## Current Limitations | ||
## Cookies | ||
This plugin isn't equivalent to using XMLHttpRequest or Ajax calls in Javascript. | ||
For instance, the following features are currently not supported: | ||
- a cookie set by a request isn't sent in subsequent requests | ||
- cookies support (a cookie set by a request isn't sent in subsequent requests) | ||
- read content of error responses (only the HTTP status code and message are returned) | ||
- read returned HTTP headers (e.g. in case security tokens are returned as headers) | ||
Take this into account when using this plugin in your application. | ||
Take this into account when using this plugin into your application. | ||
## License | ||
@@ -199,0 +200,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Possible typosquat attack
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
cordova-plugin-advanced-http |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
429015
207
1