nativescript-community / https

Secure HTTP client with SSL pinning for Nativescript - iOS/Android
https://nativescript-community.github.io/https/
Other
50 stars 42 forks source link

Not drop in replacement for requests that contain req body #43

Open rynop opened 5 years ago

rynop commented 5 years ago

This lib uses body (on POST for example).

NS http lib uses content

Was this intentional or did NS lib change signature and nativescript-https just didn't keep up?

Also, I noice the request body object (HttpsRequestObject) only supports a map of string to string|number. How would one post a boolean ({"isSet":true}) or a list (["a","b"])

Thanks in advance.

roblav96 commented 4 years ago

JSON.stringify({"isSet":true})