PHP Class Tari\ServerMiddleware\CallableServerMiddleware

Inheritance: implements Tari\ServerMiddlewareInterface
Mostrar archivo Open project: ircmaxell/tari-php

Public Methods

Method Description
__construct ( callable $callback )
handle ( Psr\Http\Message\ServerRequestInterface $request, Tari\ServerFrameInterface $frame ) : Psr\Http\Message\ResponseInterface

Method Details

__construct() public method

public __construct ( callable $callback )
$callback callable

handle() public method

public handle ( Psr\Http\Message\ServerRequestInterface $request, Tari\ServerFrameInterface $frame ) : Psr\Http\Message\ResponseInterface
$request Psr\Http\Message\ServerRequestInterface
$frame Tari\ServerFrameInterface
return Psr\Http\Message\ResponseInterface