Skip to main content

Module static_handler

Module static_handler 

Source
Expand description

Static agent card handler with HTTP caching.

StaticAgentCardHandler serves a pre-serialized AgentCard as JSON. The card is serialized once at construction time and served as raw bytes on every request. Supports HTTP caching via ETag, Last-Modified, Cache-Control, and conditional request headers (spec §8.3).

Structs§

StaticAgentCardHandler
Serves a pre-serialized AgentCard as a JSON HTTP response with caching.