Crate httpdir

source ·
Expand description

This library provides an Iterator to crawl the list of files available through Index of HTTP url.

Here is an example usage:

use url::Url;
let url = Url::parse("http://localhost/logs/").unwrap();
let files: Vec<Url> = httpdir::list(url)?;

Or using the iterator:

for file in httpdir::Crawler::new().walk(url) {
   let file: Url = file?;
}

Structs

  • The state of the crawler, created calling Crawler::new().

Functions

  • List the files and directories of a single url.
  • Helper function to walk a single url and list all the available files.