s5_importer_http

Crates.ios5_importer_http
lib.rss5_importer_http
version1.0.0-beta.1
created_at2025-11-26 05:19:40.530286+00
updated_at2025-11-26 05:19:40.530286+00
descriptionHTTP importer for S5
homepage
repositoryhttps://github.com/s5-dev/s5-rs
max_upload_size
id1950989
size92,242
(redsolver)

documentation

README

s5_importer_http

Imports content from HTTP URLs into an S5 filesystem (FS5).

Features

  • Recursive Crawling: Parses HTML to find links (<a href="...">) and recursively imports them (within the base URL scope).
  • Incremental: Uses HEAD requests to check Content-Length and Last-Modified before downloading.
  • Concurrency: Parallel processing of URLs.

Usage

use s5_importer_http::HttpImporter;
use url::Url;

let base_url = Url::parse("https://example.com/docs/")?;
let importer = HttpImporter::create(
    fs,
    blob_store,
    4, // concurrency
    base_url.clone(),
    true, // use_base_relative_keys
)?;

importer.import_url(base_url).await?;
Commit count: 0

cargo fmt