When using retrofit with coroutines, the suspend f...
# squarelibraries
k
When using retrofit with coroutines, the suspend functions return the actual data. Is there a guide on how to access headers when using this approach? Any guides would be appreciated.
k
It's been a while since I've used Retrofit, but I thought I remembered you could do
Copy code
suspend fun foo(): Response<Bar>
where Response can accesss HTTP headers