io.vertx.ext.web.handler

## Interface TimeoutHandler

- All Superinterfaces:
    Handler<RoutingContext>

      public interface TimeoutHandler
      extends 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 `408`.
  Author:
    Tim Fox

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static long` | `DEFAULT_TIMEOUT` The default timeout, in ms

  - ### Method Summary

    All Methods Static Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `static TimeoutHandler` | `create()` Create a handler
    `static TimeoutHandler` | `create(long timeout)` Create a handler

    - ### Methods inherited from interface io.vertx.core.Handler

      `handle`

- - ### Field Detail

    - #### DEFAULT_TIMEOUT

          static final long DEFAULT_TIMEOUT

      The default timeout, in ms
      See Also:
        Constant Field Values

  - ### Method Detail

    - #### create

          static TimeoutHandler create()

      Create a handler
      Returns:
        the handler

    - #### create

          static TimeoutHandler create(long timeout)

      Create a handler
      Parameters:
        `timeout` - the timeout, in ms
      Returns:
        the handler

Copyright © 2015. All Rights Reserved.