Skip to content

Fetch request body as ReadableStream #628

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Nov 17, 2021
Prev Previous commit
Next Next commit
WIP
Co-authored-by: Arman Bilge <armanbilge@gmail.com>
  • Loading branch information
ptrdom and armanbilge authored Nov 14, 2021
commit 775bb394a933c2d1e85c97016e5fce3d26ef94ae
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ReadableStreamReader[+T](stream: ReadableStream[T]) extends js.Object {
* If the reader is active, the cancel method behaves the same as that for the associated stream. When done, it
* automatically releases the lock.
*/
def cancel[U](reason: U): js.Promise[Unit] = js.native
def cancel(reason: Any): js.Promise[Unit] = js.native
def cancel(): js.Promise[Unit] = js.native

/** See [[https://streams.spec.whatwg.org/#reader-read 3.4.4.3. read()]] of whatwg Stream spec.
Expand Down