Rewrites request URLs (asynchronously) before the online file source
requests them, or fails the requests. It gets the resource’s kind and
URL, and runs on the online file source’s thread, hence Send + Sync.
What a resource transform answers: the URL to load instead, or the error
to fail the request with. A failed request is never sent. When the
error’s reason allows a retry, the retry calls the transform again.