httpdirectory/
lib.rs

1#![doc = include_str!("../README.md")]
2use const_format::formatcp;
3
4pub(crate) mod requests;
5pub(crate) mod scrape;
6
7/// All errors that you might get from httpdirectory library
8pub mod error;
9
10/// Module that allows one to get http directories
11/// in a structure with convenient methods
12pub mod httpdirectory;
13
14/// Module to deal with `HttpDirectoryEntry` enum that tells whether the
15/// `Entry` is a Parent directory, a directory or a file.
16pub mod httpdirectoryentry;
17
18/// Module that helps storing all information about the entry (name, date, size and link)
19pub mod entry;
20
21pub mod stats;
22
23/// User Agent used by httpdirectory that should be formatted
24/// "httpdirectory/{}" where {} is the version of the library
25pub const HTTPDIR_USER_AGENT: &str = formatcp!("httpdirectory/{}", env!("CARGO_PKG_VERSION"));