From 88de0550f445692779dc75c04ca8560f7f6f5959 Mon Sep 17 00:00:00 2001 From: Sefa Ilkimen Date: Sat, 30 May 2020 18:39:20 +0200 Subject: [PATCH] chore: update README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4135de8..e1a031e 100644 --- a/README.md +++ b/README.md @@ -237,9 +237,9 @@ The options object contains following keys: * `serializer`: data serializer to be used (only applicable on `post`, `put` or `patch` methods), defaults to global serializer value, see [setDataSerializer](#setDataSerializer) for supported values * `responseType`: expected response type, defaults to `text`, needs to be one of the following values: * `text`: data is returned as decoded string, use this for all kinds of string responses (e.g. XML, HTML, plain text, etc.) - * `json` data is treated as JSON and returned as parsed object - * `arraybuffer`: data is returned as [ArrayBuffer instance](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) - * `blob`: data is returned as [Blob instance](https://developer.mozilla.org/en-US/docs/Web/API/Blob) + * `json` data is treated as JSON and returned as parsed object, returns `undefined` when response body is empty + * `arraybuffer`: data is returned as [ArrayBuffer instance](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer), returns `null` when response body is empty + * `blob`: data is returned as [Blob instance](https://developer.mozilla.org/en-US/docs/Web/API/Blob), returns `null` when response body is empty * `timeout`: timeout value for the request in seconds, defaults to global timeout value * `followRedirect`: enable or disable automatically following redirects * `headers`: headers object (key value pair), will be merged with global values