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_not_redirect 🔒
Returns an error if response is a 3xx redirect. Materialize disables redirect following on the HTTP client (see build_http_client) to close an SSRF hole, so callers must surface a meaningful error rather than letting the response fall through to header parsing.