k k
08/31/2025, 2:21 PMon(ResponseSent)
, the status is nullable:
on(ResponseSent) { call ->
call.response.status() // => HttpStatusCode?
Aleksei Tirman [JB]
09/01/2025, 9:29 AMResponseSent
hook. Ktor doesn't store the sent status code in another object.k k
09/01/2025, 9:36 AMYou will get the finalized status code in the handler for theCould you share some sample code, please?hook.ResponseSent
Aleksei Tirman [JB]
09/01/2025, 9:37 AMk k
09/01/2025, 9:41 AMAleksei Tirman [JB]
09/01/2025, 9:42 AMcall.response.status()
call return null for your use case?k k
09/01/2025, 9:47 AMAleksei Tirman [JB]
09/01/2025, 9:49 AMApplicationResponse
at any point until the response is sent.