Expand description
Generic HTTP oneshot source that will fetch a file from the public internet.
Structs§
- Http
Object - Object returned from an
HttpOneshotSource. - Http
Oneshot Source - Generic oneshot source that fetches a file from a URL on the public internet.
- MzHttp
Resolver 🔒 - reqwest DNS resolver that delegates to
mz_ore::netio::resolve_address.
Enums§
Functions§
- build_
http_ client - Build a reqwest
Clientfor fetchingCOPY FROMURLs. This usesmz_ore::netio::resolve_addressfor DNS resolution. - check_
success 🔒 - Returns an error unless
responsehas a 2xx status. A 3xx gets a dedicated error because redirects are disabled on the HTTP client (seebuild_http_client). Any other status would otherwise let an error page body be ingested as data.