You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,13 @@ Https.disableSSLPinning()
101
101
```
102
102
All requests after calling this method will no longer utilize SSL pinning until it is re-enabled once again.
103
103
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.
0 commit comments