Cherry.Upgrade.HTTP (cherry v0.5.0)

Copy Markdown View Source

The one HTTP client in Cherry: plain :httpc (no runtime deps), TLS verification against the OS trust store, redirects followed — GitHub serves release assets through a redirect to its CDN.

Cherry.Upgrade takes this module's fetch/1 as its default fetcher; tests inject a local stand-in instead.

Summary

Functions

GETs a URL, returning the body on 200.

Functions

fetch(url)

@spec fetch(String.t()) :: {:ok, binary()} | {:error, term()}

GETs a URL, returning the body on 200.