vertx / io.vertx.core.http / HttpServerResponse / bodyEndHandler

# bodyEndHandler

`abstract fun bodyEndHandler(handler: Handler<Void>): HttpServerResponse`

Provides a handler that will be called after the last part of the body is written to the wire. The handler is called asynchronously of when the response has been received by the client. This provides a hook allowing you to do more operations once the request has been sent over the wire such as resource cleanup.

### Parameters

`handler` - the handler

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