File tree 5 files changed +36
-0
lines changed
5 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -16543,9 +16543,12 @@ RequestDestination[SO] val sharedworker: RequestDestination
16543
16543
RequestDestination[SO] val subresource: RequestDestination
16544
16544
RequestDestination[SO] val unknown: RequestDestination
16545
16545
RequestDestination[SO] val worker: RequestDestination
16546
+ RequestDuplex[JT]
16547
+ RequestDuplex[SO] val half: RequestDuplex
16546
16548
RequestInit[JT] var body: js.UndefOr[BodyInit]
16547
16549
RequestInit[JT] var cache: js.UndefOr[RequestCache]
16548
16550
RequestInit[JT] var credentials: js.UndefOr[RequestCredentials]
16551
+ RequestInit[JT] var duplex: js.UndefOr[RequestDuplex]
16549
16552
RequestInit[JT] var headers: js.UndefOr[HeadersInit]
16550
16553
RequestInit[JT] var integrity: js.UndefOr[String]
16551
16554
RequestInit[JT] var keepalive: js.UndefOr[Boolean]
Original file line number Diff line number Diff line change @@ -16543,9 +16543,12 @@ RequestDestination[SO] val sharedworker: RequestDestination
16543
16543
RequestDestination[SO] val subresource: RequestDestination
16544
16544
RequestDestination[SO] val unknown: RequestDestination
16545
16545
RequestDestination[SO] val worker: RequestDestination
16546
+ RequestDuplex[JT]
16547
+ RequestDuplex[SO] val half: RequestDuplex
16546
16548
RequestInit[JT] var body: js.UndefOr[BodyInit]
16547
16549
RequestInit[JT] var cache: js.UndefOr[RequestCache]
16548
16550
RequestInit[JT] var credentials: js.UndefOr[RequestCredentials]
16551
+ RequestInit[JT] var duplex: js.UndefOr[RequestDuplex]
16549
16552
RequestInit[JT] var headers: js.UndefOr[HeadersInit]
16550
16553
RequestInit[JT] var integrity: js.UndefOr[String]
16551
16554
RequestInit[JT] var keepalive: js.UndefOr[Boolean]
Original file line number Diff line number Diff line change
1
+ package org .scalajs .dom
2
+
3
+ import scala .scalajs .js
4
+
5
+ /**
6
+ * Fetch APIs [[https://fetch.spec.whatwg.org/#dom-requestinit-duplex RequestDuplex enum ]]
7
+ */
8
+ @ js.native
9
+ sealed trait RequestDuplex extends js.Any
10
+
11
+ object RequestDuplex {
12
+ val half : RequestDuplex = " half" .asInstanceOf [RequestDuplex ]
13
+ }
Original file line number Diff line number Diff line change
1
+ package org .scalajs .dom
2
+
3
+ import scala .scalajs .js
4
+
5
+ /**
6
+ * Fetch APIs [[https://fetch.spec.whatwg.org/#dom-requestinit-duplex RequestDuplex enum ]]
7
+ */
8
+ opaque type RequestDuplex <: String = String
9
+
10
+ object RequestDuplex {
11
+ val half : RequestDuplex = " half"
12
+ }
Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ trait RequestInit extends js.Object {
30
30
31
31
var signal : js.UndefOr [AbortSignal ] = js.undefined
32
32
33
+ /** "half" is the only valid value and it is for initiating a half-duplex fetch (i.e., the user agent sends the entire
34
+ * request before processing the response).
35
+ */
36
+ var duplex : js.UndefOr [RequestDuplex ] = js.undefined
37
+
33
38
/** The whatwg spec section on [[https://fetch.spec.whatwg.org/#requestinit RequestInit dictionary ]] has a comment
34
39
* that states that this value "can only be set to null". In the detailed steps section for
35
40
* [[https://fetch.spec.whatwg.org/#dom-request the Request(input,init) constructor ]] it says even more clearly: "If
You can’t perform that action at this time.
0 commit comments