Method | Description | |
---|---|---|
__construct ( array $trusted = null ) | Constructor. Set the trusted ips. | |
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface | Execute the middleware. | |
trusted ( array $trusted ) : self | Set trusted ips. | |
untrusted ( array $untrusted ) : self | Set untrusted ips. |
public __construct ( array $trusted = null ) | ||
$trusted | array |
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 | |
return | Psr\Http\Message\ResponseInterface |