Receiving the response body as text

Report a typo

Here is a code snippet:

val client = HttpClient(CIO)
val res: HttpResponse = client.get("https://google.com")

How do we get the response body as text?

Enter a short text
___

Create a free account to access the full topic