harp_apps.http_cache.utils¶
- prepare_headers_for_serialization(headers, /, *, varying=())[source]¶
Prepare headers for serialization.
- Args:
- headers: Either a list of (bytes, bytes) tuples (hishel 0.1.x / httpcore)
or a Headers mapping (hishel 1.0)
varying: Tuple of header names that should be stored separately
- Returns:
Tuple of (static_headers_bytes, varying_headers_dict, metadata_dict)