Skip to main content

Module fetch

Module fetch 

Source

Structs§

FetchedPage
Outcome of an HTTP fetch: the body, the URL we actually landed on after following redirects, and the response’s Content-Type (if any).

Functions§

fetch_page
Fetch a URL, following redirects manually so the SSRF guard re-validates and re-pins each hop (closing the DNS-rebinding window for redirected hosts too), retrying transient failures with exponential backoff. Caps the redirect chain at [MAX_REDIRECTS] and the body at [MAX_BODY_BYTES].