update readme and changelog

This commit is contained in:
Sefa Ilkimen
2020-01-26 17:55:04 +01:00
parent faffe0e078
commit 33fea67603
3 changed files with 21 additions and 7 deletions
+4
View File
@@ -1,5 +1,9 @@
# Changelog # Changelog
## 2.4.0
- Feature #291: add support for sending 'raw' requests (thanks to jachstet-sea and chuchuva)
## 2.3.1 ## 2.3.1
- Fixed #275: getAllCookies() is broken because of a typo (thanks ath0mas) - Fixed #275: getAllCookies() is broken because of a typo (thanks ath0mas)
+15 -5
View File
@@ -91,11 +91,21 @@ cordova.plugin.http.setDataSerializer('urlencoded');
``` ```
You can choose one of these: You can choose one of these:
* `urlencoded`: send data as url encoded content in body (content type "application/x-www-form-urlencoded") * `urlencoded`: send data as url encoded content in body
* `json`: send data as JSON encoded content in body (content type "application/json") * default content type "application/x-www-form-urlencoded"
* `utf8`: send data as plain UTF8 encoded string in body (content type "plain/text") * data must be an dictionary style `Object`
* `multipart`: send FormData objects as multipart content in body (content type "multipart/form-data") * `json`: send data as JSON encoded content in body
* `raw`: send data as is, without any processing. Data should be `Uint8Array` or `ArrayBuffer`. * default content type "application/json"
* data must be an `Array` or an dictionary style `Object`
* `utf8`: send data as plain UTF8 encoded string in body
* default content type "plain/text"
* data must be a `String`
* `multipart`: send FormData objects as multipart content in body
* default content type "multipart/form-data"
* data must be an `FormData` instance
* `raw`: send data as is, without any processing
* default content type "application/octet-stream"
* data must be an `Uint8Array` or an `ArrayBuffer`
This defaults to `urlencoded`. You can also override the default content type headers by specifying your own headers (see [setHeader](#setHeader)). This defaults to `urlencoded`. You can also override the default content type headers by specifying your own headers (see [setHeader](#setHeader)).
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "cordova-plugin-advanced-http", "name": "cordova-plugin-advanced-http",
"version": "2.3.1", "version": "2.4.0",
"description": "Cordova / Phonegap plugin for communicating with HTTP servers using SSL pinning", "description": "Cordova / Phonegap plugin for communicating with HTTP servers using SSL pinning",
"scripts": { "scripts": {
"updatecert": "node ./scripts/update-e2e-server-cert.js && node ./scripts/update-e2e-client-cert.js", "updatecert": "node ./scripts/update-e2e-server-cert.js && node ./scripts/update-e2e-client-cert.js",
@@ -50,7 +50,7 @@
"pvsaikrishna", "pvsaikrishna",
"cvillerm", "cvillerm",
"hideov", "hideov",
"Mobisys" "silkimen"
], ],
"license": "MIT", "license": "MIT",
"bugs": { "bugs": {