Luv Kumar
07/29/2025, 2:39 PMRequestTimeout
in ktor-client. Docs says: The request timeout is the time period required to process an HTTP call: from sending a request to receiving a response.
. Here, does receiving the response means receiving the headers and status code or receiving the full body as well ? In case it means receiving the full body as well, How does it work in case of streamed response bodies, as in if i have already received the ByteReadChannel
via HttpResponse.bodyAsChannel()
, and now i am reading the body and ingesting the data for the large content, by this time which method would throw the ex ? because HttpClient.request
method would have already completed by this time as response is already obtained. I did found this thread, but due to my follow up, i was still confused.
In all this i am assuming the actual response is buffered as i read from the channel and not brought in memory fully when i get the channel from response.Aleksei Tirman [JB]
07/30/2025, 8:43 AMLuv Kumar
07/30/2025, 8:49 AM