script::body

Function consume_body

Source
pub(crate) fn consume_body<T: BodyMixin + DomObject>(
    object: &T,
    body_type: BodyType,
    can_gc: CanGc,
) -> Rc<Promise>
Expand description

https://fetch.spec.whatwg.org/#concept-body-consume-body https://fetch.spec.whatwg.org/#body-fully-read A combination of parts of both algorithms, body-fully-read can be fully implemented, and separated, later, see #36049.