0 follower

Interface Yiisoft\HttpMiddleware\HttpCache\CacheControlProvider\CacheControlProviderInterface

Implemented byYiisoft\HttpMiddleware\HttpCache\CacheControlProvider\ConstantCacheControlProvider, Yiisoft\HttpMiddleware\HttpCache\CacheControlProvider\NullCacheControlProvider

Interface for Cache-Control header value providers. Given a request, it generates a header value.

Public Methods

Hide inherited methods

Method Description Defined By
get() Returns a cache control header value for the given server request. Yiisoft\HttpMiddleware\HttpCache\CacheControlProvider\CacheControlProviderInterface

Method Details

Hide inherited methods

get() public abstract method

Returns a cache control header value for the given server request.

public abstract string|null get ( \Psr\Http\Message\ServerRequestInterface $request )
$request \Psr\Http\Message\ServerRequestInterface

The server request for which to generate the cache control value.

return string|null

The cache control header value or null if no cache control is applicable.

                public function get(ServerRequestInterface $request): ?string;