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§
- Cache
Config - Configuration for
Cache-Controlheaders on agent card responses.
Enums§
- Conditional
Result - Result of checking conditional request headers.
Functions§
- check_
conditional - Checks
If-None-MatchandIf-Modified-Sinceheaders against the currentETagandLast-Modifiedvalues. - format_
http_ date - Formats a
SystemTimeas an HTTP-date (RFC 7231 §7.1.1.1). - make_
etag - Generates a weak
ETagfrom the given bytes using a simple FNV-1a hash.