-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathBodyInit.res
More file actions
48 lines (39 loc) · 1.59 KB
/
BodyInit.res
File metadata and controls
48 lines (39 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
open FileAPI
open FetchAPI
open URLAPI
/**
[Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_a_body)
*/
external fromString: string => bodyInit = "%identity"
/**
[Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_a_body)
*/
external fromArrayBuffer: ArrayBuffer.t => bodyInit = "%identity"
/**
[Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_a_body)
*/
external fromTypedArray: TypedArray.t<'t> => bodyInit = "%identity"
/**
[Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_a_body)
*/
external fromDataView: DataView.t => bodyInit = "%identity"
/**
[Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_a_body)
*/
external fromBlob: blob => bodyInit = "%identity"
/**
[Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_a_body)
*/
external fromFile: file => bodyInit = "%identity"
/**
[Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_a_body)
*/
external fromURLSearchParams: urlSearchParams => bodyInit = "%identity"
/**
[Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_a_body)
*/
external fromFormData: formData => bodyInit = "%identity"
/**
[Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_a_body)
*/
external fromReadableStream: readableStream<'t> => bodyInit = "%identity"