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 |
---|
__construct()
create( $arg0 = null, $arg1 = null) : \io\vertx\jphp\ext\web\handler\TimeoutHandler
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)
integer
integer
\io\vertx\jphp\ext\web\handler\TimeoutHandler
the handler
handle( $arg0) : void
RoutingContext
DEFAULT_TIMEOUT
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_ERRORCODE
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|