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
+4-10Lines changed: 4 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,10 +92,13 @@ You can choose one of these:
92
92
*`urlencoded`: send data as url encoded content in body (content type "application/x-www-form-urlencoded")
93
93
*`json`: send data as JSON encoded content in body (content type "application/json")
94
94
*`utf8`: send data as plain UTF8 encoded string in body (content type "plain/text")
95
+
*`multipart`: send FormData objects as multipart content in body (content type "multipart/form-data")
95
96
96
97
This defaults to `urlencoded`. You can also override the default content type headers by specifying your own headers (see [setHeader](#setHeader)).
97
98
98
-
__Caution__: `urlencoded` does not support serializing deep structures whereas `json` does.
99
+
:warning:`urlencoded` does not support serializing deep structures whereas `json` does.
100
+
101
+
:warning:`multipart` depends on several Web API standards which need to be supported in your web view. Check out https://github.com/silkimen/cordova-plugin-advanced-http/wiki/Web-APIs-required-for-Multipart-requests for more info.
99
102
100
103
### setRequestTimeout
101
104
Set how long to wait for a request to respond, in seconds.
@@ -176,15 +179,6 @@ This function was deprecated in 2.0.9. Use ["setFollowRedirect"](#setFollowRedir
176
179
### setSSLCertMode (deprecated)
177
180
This function was deprecated in 2.0.8. Use ["setServerTrustMode"](#setServerTrustMode) instead.
178
181
179
-
### enableSSLPinning (obsolete)
180
-
This function was removed in 2.0.0. Use ["setServerTrustMode"](#setServerTrustMode) to enable SSL pinning (mode "pinned").
181
-
182
-
### acceptAllCerts (obsolete)
183
-
This function was removed in 2.0.0. Use ["setServerTrustMode"](#setServerTrustMode) to disable checking certs (mode "nocheck").
184
-
185
-
### validateDomainName (obsolete)
186
-
This function was removed in v1.6.2. Domain name validation is disabled automatically when you set server trust mode to "nocheck".
0 commit comments