scrapfly_sdk::batch

Function parts_from_response

Source
pub fn parts_from_response(
    resp: Response,
) -> Result<BatchPartStream<impl Stream<Item = Result<Bytes, Error>>>, ScrapflyError>
Expand description

Convenience: take a reqwest Response whose Content-Type is multipart/mixed and return a typed Stream<Item=BatchPart>.