Skip to content

Commit 1e913b3

Browse files
committed
chore: update readme
1 parent 604637a commit 1e913b3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ Https.disableSSLPinning()
101101
```
102102
All requests after calling this method will no longer utilize SSL pinning until it is re-enabled once again.
103103

104+
### useLegacy
105+
106+
There is a new option called `useLegacy`. You can set of every request options.
107+
When using that option the request will behave more like {N} http module.
108+
109+
* the `content` returned by a request is not the resulting string but an object. It follows [HTTPContent](https://docs.nativescript.org/api-reference/interfaces/_http_.httpcontent) format for the most part. You can call `toJSON` or `toFile`. The only difference is that `toFile` returns a `Promise<File>` which means that it is async and run in a background thread!
110+
* an error return a `content` too allowing you to read its content.
104111

105112
### Cookie
106113

0 commit comments

Comments
 (0)