Use case
google_fonts will request fonts from the Internet. Today it uses an internally created http client to make these requests. Due to how it's constructed the http client can't be modified by users, in production or even for mocking in tests.
It would be useful to configure the httpClient, so additional properties can be set (e.g proxies, user agents, etc). Additionally in tests, it would be useful to mock this client out to test for specific behaviours.
Proposal
Move the internal httpClient to be a property on the Config object. So it can be configured by the user.
Use case
google_fonts will request fonts from the Internet. Today it uses an internally created http client to make these requests. Due to how it's constructed the http client can't be modified by users, in production or even for mocking in tests.
It would be useful to configure the httpClient, so additional properties can be set (e.g proxies, user agents, etc). Additionally in tests, it would be useful to mock this client out to test for specific behaviours.
Proposal
Move the internal httpClient to be a property on the Config object. So it can be configured by the user.