vertx / io.vertx.core.http / HttpServerResponse / endHandler

endHandler

abstract fun endHandler(handler: Handler<Void>): HttpServerResponse

Set an end handler for the response. This will be called when the response is disposed to allow consistent cleanup of the response.

Parameters

handler - the handler

Return
a reference to this, so the API can be used fluently