Understanding the Use of `Layer.scoped` for HTTP Client Creation

Hi, I don't understand fully how Layer.scoped works and whether should I use it in my cases.
Is it ok to create http clients like that? Or should I use Layer.scoped?
Was this page helpful?