프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$seconds |
메소드 | 설명 | |
---|---|---|
__construct ( integer | array $seconds = [1, 2] ) | Set the seconds to delay. | |
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface | Execute the middleware. |
public __construct ( integer | array $seconds = [1, 2] ) | ||
$seconds | integer | array | Use an array to random values [min, max] |
public __invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface | ||
$request | Psr\Http\Message\ServerRequestInterface | |
$response | Psr\Http\Message\ResponseInterface | |
$next | callable | |
리턴 | Psr\Http\Message\ResponseInterface |