@@ -5,7 +5,61 @@ open FileAPI
5
5
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response)
6
6
*/
7
7
@new
8
- external make : (~body : bodyInit = ?, ~init : responseInit = ?) => response = "Response"
8
+ external fromNull : (@as (json ` null` ) _ , ~init : responseInit = ?) => response = "Response"
9
+
10
+ /**
11
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response)
12
+ */
13
+ @new
14
+ external fromString : (string , ~init : responseInit = ?) => response = "Response"
15
+
16
+ /**
17
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response)
18
+ */
19
+ @new
20
+ external fromArrayBuffer : (ArrayBuffer .t , ~init : responseInit = ?) => response = "Response"
21
+
22
+ /**
23
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response)
24
+ */
25
+ @new
26
+ external fromTypedArray : (TypedArray .t <'t >, ~init : responseInit = ?) => response = "Response"
27
+
28
+ /**
29
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response)
30
+ */
31
+ @new
32
+ external fromDataView : (DataView .t , ~init : responseInit = ?) => response = "Response"
33
+
34
+ /**
35
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response)
36
+ */
37
+ @new
38
+ external fromBlob : (blob , ~init : responseInit = ?) => response = "Response"
39
+
40
+ /**
41
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response)
42
+ */
43
+ @new
44
+ external fromFile : (file , ~init : responseInit = ?) => response = "Response"
45
+
46
+ /**
47
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response)
48
+ */
49
+ @new
50
+ external fromURLSearchParams : (urlSearchParams , ~init : responseInit = ?) => response = "Response"
51
+
52
+ /**
53
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response)
54
+ */
55
+ @new
56
+ external fromFormData : (formData , ~init : responseInit = ?) => response = "Response"
57
+
58
+ /**
59
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response)
60
+ */
61
+ @new
62
+ external fromReadableStream : (readableStream <'t >, ~init : responseInit = ?) => response = "Response"
9
63
10
64
/**
11
65
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer)
0 commit comments