Skip to main content

Module http

Module http 

Source
Expand description

The one place an unauthenticated HTTP GET leaves this process.

Model calls have their own client in provider; everything else that reads a URL goes through get: the fetch tool, and the update notice (update). Having one function means one SSRF policy, one rule about redirects, and one thing to read when asking “what does this tool send to the network?”.

Enums§

Reach
Which hosts a request may reach.

Functions§

download
Stream one GET into a file, refusing anything over cap bytes.
get
Send one GET and return the response head and body reader. Redirects are not followed: whoever approved or configured this URL did not approve its redirect target.