\Imi\Server\Http\MiddlewareExecuteTimeoutMiddleware

当单个请求超过最大执行时间,触发超时处理

Summary

Methods
Properties
Constants
process()
No public properties found
No constants found
No protected methods found
$maxExecuteTime
$handler
N/A
No private methods found
No private properties found
N/A

Properties

$maxExecuteTime

$maxExecuteTime : integer

最大执行时间,单位:毫秒

默认为 30 秒

Type

integer

$handler

$handler : string

超时处理器

Type

string

Methods

process()

process(\Psr\Http\Message\ServerRequestInterface  $request, \Psr\Http\Server\RequestHandlerInterface  $handler) : \Psr\Http\Message\ResponseInterface

处理方法

Parameters

\Psr\Http\Message\ServerRequestInterface $request
\Psr\Http\Server\RequestHandlerInterface $handler

Returns

\Psr\Http\Message\ResponseInterface