fetch(+URL,
+Type, -Data)Wrapper around JavaScript fetch(), conversion of the Response
object and waiting for the Promise
. Type is an atom or
string that is used as method on the Response
object.
Examples are
text
, json
, html
or blob
.
The
blob
type returns the Data as a string of bytes,
i.e., character codes in the range 0 ... 255.
[det]fetch(+URL,
+Type, -Data)Fetch the content from URL asynchronously. Type is
a method name on the Response object returned by fetch()
,
e.g., text
, json
,
html
, blob
.