vertx / io.vertx.ext.web.handler / TimeoutHandler

TimeoutHandler

interface TimeoutHandler : Handler<RoutingContext>

Handler that will timeout requests if the response has not been written after a certain time. Timeout requests will be ended with an HTTP status code `503`.

Author
Tim Fox

Properties

DEFAULT_ERRORCODE

static val DEFAULT_ERRORCODE: Int

The default error code

DEFAULT_TIMEOUT

static val DEFAULT_TIMEOUT: Long

The default timeout, in ms

Functions

create

open static fun create(): TimeoutHandler
open static fun create(timeout: Long): TimeoutHandler
open static fun create(timeout: Long, errorCode: Int): TimeoutHandler

Create a handler