[][src]Crate just_fetch

A library to simply fetch stuff, regardless of whether it's from the internet, from the filesystem, inside a gzipped archive, whatever. Used by scaff so it can focus on what's important: The contents of the specified archive.

Structs

Fetcher

A wrapper around ureq::Agent that supports opening any kind of Fetchable resource

Enums

Resource

An enum wrapping the two common fetchers PathBuf and Url. This is more efficient than using Box<dyn Fetcher>.

Traits

Fetchable

Something that can be turned into a reader given a fetcher. Example is a URL which can be turned into a reader by sending a GET request, or a file path which can be turned into a reader by just opening the file.