@divkitframework/divkit 27.0.0 → 27.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -258,6 +258,30 @@ function typefaceProvider(fontFamily: string, opts?: {
258
258
  }
259
259
  ```
260
260
 
261
+ #### fetchInit
262
+
263
+ `/client` and `/client-hydratable`
264
+
265
+ Function or object, optional.
266
+
267
+ Used as a second parameter for `fetch` requests in the `div-action://download` actions.
268
+
269
+ ```ts
270
+ function fetchInit(url: string) {
271
+ return {
272
+ credentials: 'include'
273
+ };
274
+ }
275
+ ```
276
+
277
+ Or
278
+
279
+ ```ts
280
+ fetchInit: {
281
+ credentials: 'include'
282
+ }
283
+ ```
284
+
261
285
  #### platform
262
286
 
263
287
  `desktop` | `touch` | `auto`