Skip to main content

render_html_with_timeout

Function render_html_with_timeout 

Source
pub async fn render_html_with_timeout(
    url: &str,
    timeout: Duration,
) -> Result<String>
Expand description

Render HTML content from a URL using a headless browser and caller-provided timeout.

ยงErrors

Returns an error if Chrome is unavailable, fails, or does not finish before timeout.