Expand description
Bounded, SSRF-aware HTTP fetch built on ureq.
Redirects are followed manually so every hop passes back through
url_guard, closing the redirect-to-internal SSRF hole that automatic
redirect following would open. Response bodies are capped to a byte budget so
a hostile server cannot exhaust memory.
Structs§
- Fetched
Doc - A fetched document with its raw body bytes and resolved metadata.
Constants§
- DEFAULT_
MAX_ BYTES - Default response body cap (4 MiB) — generous for articles, safe for memory.
- DEFAULT_
TIMEOUT_ SECS - Default total request timeout in seconds.