Skip to main content

Module caching

Module caching 

Source
Expand description

HTTP caching utilities for agent card responses (spec §8.3).

Provides ETag generation, Last-Modified formatting, conditional request checking, and Cache-Control configuration.

Structs§

CacheConfig
Configuration for Cache-Control headers on agent card responses.

Enums§

ConditionalResult
Result of checking conditional request headers.

Functions§

check_conditional
Checks If-None-Match and If-Modified-Since headers against the current ETag and Last-Modified values.
format_http_date
Formats a SystemTime as an HTTP-date (RFC 7231 §7.1.1.1).
make_etag
Generates a weak ETag from the given bytes using a simple FNV-1a hash.