Skip to main content

Module http_source

Module http_source 

Source
Expand description

Generic HTTP oneshot source that will fetch a file from the public internet.

Structs§

HttpObject
Object returned from an HttpOneshotSource.
HttpOneshotSource
Generic oneshot source that fetches a file from a URL on the public internet.
MzHttpResolver 🔒
reqwest DNS resolver that delegates to mz_ore::netio::resolve_address.

Enums§

HttpChecksum

Functions§

build_http_client
Build a reqwest Client for fetching COPY FROM URLs. This uses mz_ore::netio::resolve_address for DNS resolution.
check_success 🔒
Returns an error unless response has a 2xx status. A 3xx gets a dedicated error because redirects are disabled on the HTTP client (see build_http_client). Any other status would otherwise let an error page body be ingested as data.