Something along the lines of what renv does with the [`renv.download.headers`](https://rstudio.github.io/renv/articles/package-install.html#custom-headers) options setting. Maybe as simple as "exposing" [`default_download_headers()`](https://github.com/r-lib/pkgdepends/blob/872235d775109b618dec2bc7515c2656b63cf724/R/download.R#L390-L394) as an option? Maybe related to #428? Not sure about the scope there.