pub(crate) fn read_stream_body(
it: &mut Interp,
stream: &ObjRef,
kind: &str,
) -> ValueExpand description
new Response(readableStream) の本文を読む Promise(kind は arrayBuffer/text/json/blob/bytes)。
ストリームが閉じていればすぐ、まだなら閉じたとき(flush_stream_waiters)に解決する。