Creating a Custom HttpClient Layer with ScrapingBee Integration
Hello! I want to use HttpClient from
The main issue I see, is that the expected return type is
The main goal at the end, is to be able to quickly switch between
@effect/platform to write my request. I was wondering if it would be possible to write a Layer that implement HttpClient.HttpClient that use ScrapingBee?The main issue I see, is that the expected return type is
Effect<HttpClientResponse, HttpClientError, never>, but I need a dependency on my ScrapingBee client The main goal at the end, is to be able to quickly switch between
FetchHttpClient.layer and my ScrapingBeeFetchClient.layer