TimeoutHandler

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.

package

Default

Methods

__construct

__construct() 

Create a handler

create( $arg0 = null,  $arg1 = null) : \io\vertx\jphp\ext\web\handler\TimeoutHandler
static

create()

Create a handler

param $timeout [integer] the timeout, in ms create($timeout)

Create a handler

param $timeout [integer] the timeout, in ms param $errorCode [integer] create($timeout, $errorCode)

Arguments

$arg0

integer

$arg1

integer

Response

\io\vertx\jphp\ext\web\handler\TimeoutHandler

the handler

Something has happened, so handle it.

handle( $arg0) : void

Arguments

$arg0

RoutingContext

Constants

The default timeout, in ms

DEFAULT_TIMEOUT
var

php文件只是为了写代码方便,常量的实际值请参考原java文件

The default error code

DEFAULT_ERRORCODE
var

php文件只是为了写代码方便,常量的实际值请参考原java文件