Closed ranfdev closed 2 years ago
This PR makes it possible to use fetch to get binary data.
fetch
arrayBuffer is a standard method of fetch. gBytes is non standard, but it's needed in the gjs world (calling arrayBuffer and then converting to GBytes would require more copying) .
arrayBuffer
gBytes
GBytes
The two methods return nearly the same thing, so I added just one test for both
This PR makes it possible to use
fetch
to get binary data.arrayBuffer
is a standard method of fetch.gBytes
is non standard, but it's needed in the gjs world (callingarrayBuffer
and then converting toGBytes
would require more copying) .