From 33fea67603832390d07fba71f6413a2964feb73c Mon Sep 17 00:00:00 2001 From: Sefa Ilkimen Date: Sun, 26 Jan 2020 17:55:04 +0100 Subject: [PATCH] update readme and changelog --- CHANGELOG.md | 4 ++++ README.md | 20 +++++++++++++++----- package.json | 4 ++-- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 492604c..f4ef441 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.4.0 + +- Feature #291: add support for sending 'raw' requests (thanks to jachstet-sea and chuchuva) + ## 2.3.1 - Fixed #275: getAllCookies() is broken because of a typo (thanks ath0mas) diff --git a/README.md b/README.md index c2d7c85..246709a 100644 --- a/README.md +++ b/README.md @@ -91,11 +91,21 @@ cordova.plugin.http.setDataSerializer('urlencoded'); ``` You can choose one of these: -* `urlencoded`: send data as url encoded content in body (content type "application/x-www-form-urlencoded") -* `json`: send data as JSON encoded content in body (content type "application/json") -* `utf8`: send data as plain UTF8 encoded string in body (content type "plain/text") -* `multipart`: send FormData objects as multipart content in body (content type "multipart/form-data") -* `raw`: send data as is, without any processing. Data should be `Uint8Array` or `ArrayBuffer`. +* `urlencoded`: send data as url encoded content in body + * default content type "application/x-www-form-urlencoded" + * data must be an dictionary style `Object` +* `json`: send data as JSON encoded content in body + * 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)). diff --git a/package.json b/package.json index 3e9bec9..12de35a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "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", "scripts": { "updatecert": "node ./scripts/update-e2e-server-cert.js && node ./scripts/update-e2e-client-cert.js", @@ -50,7 +50,7 @@ "pvsaikrishna", "cvillerm", "hideov", - "Mobisys" + "silkimen" ], "license": "MIT", "bugs": {