Response usage
Kohttp methods return okhttp3.Response
which is AutoClosable
It's strictly recommended to access it with use
to prevent resource leakage.
Response body can be retrieved as a JSON
, String
or InputStream
using provided extension functions on Response
.
Last updated