daylight_component: Support Faraday for HTTP fetches
We’d like to use Faraday in our daylight backend to provide HTTP cacheing middleware. This means adjusting the daylight_component
API surface to allow applications to provide their own Faraday client, which will be used for all HTTP requests.
Once this is done, we can remove cacheing from the gem entirely and leave it up to the client to provide it.
Acceptance Criteria
-
It is possible for downstream applications to provide their own Faraday client to daylight_component
and have it be used. -
daylight_component
does not try to cache components but instead depends on the client for doing so.
Edited by kibigo!