Function web_archive::archive [−][src]
pub async fn archive<U>(
url: U,
options: ArchiveOptions
) -> Result<PageArchive, Error> where
U: TryInto<Url>,
<U as TryInto<Url>>::Error: Display,
The async archive function.
Takes in a URL and attempts to download the page and its resources.
Network errors get wrapped in Error
and returned as the Err
case.