Skip to main content

fetch_html

Function fetch_html 

Source
pub async fn fetch_html(url: &str) -> Result<String>
Expand description

Fetch HTML content from a URL

This function makes a simple HTTP GET request to fetch the HTML content.

§Arguments

  • url - The URL to fetch

§Returns

The HTML content as a string

§Errors

Returns an error if the fetch fails or the response cannot be decoded