PHP Class Psr7Middlewares\Middleware\Expires

Afficher le fichier Open project: oscarotero/psr7-middlewares

Méthodes publiques

Méthode Description
__invoke ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface Execute the middleware.
addExpires ( string $mime, string $expires ) Add a new expires header.

Method Details

__invoke() public méthode

Execute the middleware.
public __invoke ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface
$request Psr\Http\Message\RequestInterface
$response Psr\Http\Message\ResponseInterface
$next callable
Résultat Psr\Http\Message\ResponseInterface

addExpires() public méthode

Add a new expires header.
public addExpires ( string $mime, string $expires )
$mime string
$expires string