httpClient defines all HTTP request, in this case we are calling a
GET with the specified
your_url as URL, and it returns a
Looks like super short and neat.
Looks like super short and neat. WHich i consider a big advantage. Any pitfalls you experienced so far? From the return type I assume this is a blocking call, and if you need concurrency you need to write it yourself by wraping this in coroutines a flow or whatever you would like? Which is a different approach to Retrofit which comes bundeled with common options and the ability to build custom call adapters (which may add a lot of complexity).