Skip to main content

get_page_head

Function get_page_head 

Source
pub async fn get_page_head(
    http: &Client,
    url: &str,
    max_bytes: usize,
) -> Result<Linked, String>
Expand description

The head of the web page at url: what it sends until its head ends, and max_bytes of it at most. Unlike get, a page longer than that is no error: the rest is left unread. What the server doesn’t call a web page is refused before any of it is read; if it calls it a video, that is the answer.