INNER CODE UNIT · Python
_excluded_from_storage
redis/fastapi-redis-sdk · src/redis_fastapi/cache.py:372
def _excluded_from_storage(response_headers: list[tuple[bytes, bytes]]) -> set[bytes]:
"""Return the lowercase field names this entry must not store.
The fixed groups are joined by whatever ``Connection`` names in this
particular response, which RFC 9110 section 7.6.1 makes connection
specific for that message only.
Args:
response_headers: Raw ASGI response headers.
Returns:
Lowercase header names to leave out of the entry.
"""
excluded = set(
OWNED_HEADERS
| HOP_BY_HOP_HEADERS
| PROXY_HEADERS
| FRAMING_HEADERS