spider::utils

Function handle_response_bytes_writer

Source
pub async fn handle_response_bytes_writer<'h, O>(
    res: Response,
    target_url: &str,
    only_html: bool,
    rewriter: &mut HtmlRewriter<'h, O>,
    collected_bytes: &mut BytesMut,
) -> (PageResponse, bool)
where O: OutputSink + Send + 'static,
Expand description

Handle the response bytes writing links while crawling