/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/HttpClient/Caching/Freshness.php
35 строк
764 B
Lctrs
[HttpClient] Make `CachingHttpClient` compatible with RFC 9111
29 сен 2025, 10:12
29 сен 2025, 10:12
a62b547
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpClient\Caching; /** * @internal */ enum Freshness { /** * The cached response is fresh and can be used without revalidation. */ case Fresh; /** * The cached response is stale and must be revalidated before use. */ case MustRevalidate; /** * The cached response is stale and should not be used. */ case Stale; /** * The cached response is stale but may be used as a fallback in case of errors. */ case StaleButUsable; }