-
Notifications
You must be signed in to change notification settings - Fork 0
/
ReadableStreamBYOBRequest.cljs
66 lines (45 loc) · 1.87 KB
/
ReadableStreamBYOBRequest.cljs
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
(ns web.fetch.ReadableStreamBYOBRequest
"The ReadableStreamBYOBRequest interface of the Streams API represents
pull request into a `web.fetch.ReadableByteStreamController`"
(:refer-clojure :exclude []))
(def constructor
"Constructor.
The ReadableStreamBYOBRequest() constructor creates and returns a ReadableStreamBYOBRequest() object instance.
controller
The associated `web.fetch.ReadableByteStreamController`.
view
The current view.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBRequest/ReadableStreamBYOBRequest`"
js/ReadableStreamBYOBRequest)
(defn respond
"Method.
The error() method of the `web.fetch.ReadableStreamBYOBRequest`
xxx
`readableStreamBYOBRequestInstance.respond(bytesWritten);`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBRequest/respond`"
[this bytes-written]
(-> this (.respond bytes-written)))
(defn respond-with-new-view
"Method.
The respondWithNewView() method of the `web.fetch.ReadableStreamBYOBRequest`
xxx
`readableStreamBYOBRequestInstance.respondWithNewView(view);`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView`"
[this view]
(-> this (.respondWithNewView view)))
(defn view
"Property.
The view getter property of the `web.fetch.ReadableStreamBYOBRequest`
returns the current view.
`var view = readableStreamBYOBRequestInstance.view;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBRequest/view`"
[this]
(-> this (.-view)))
(defn set-view!
"Property.
The view getter property of the `web.fetch.ReadableStreamBYOBRequest`
returns the current view.
`var view = readableStreamBYOBRequestInstance.view;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBRequest/view`"
[this val]
(aset this "view" val))