Expand description
HTTP dispatch layer — JSON-RPC and REST routing, apart or on one listener
(CombinedDispatcher).
Modules§
- axum_
adapter axum - Axum framework integration for A2A servers.
- combined
- JSON-RPC and HTTP+JSON on one listener.
- cors
- CORS (Cross-Origin Resource Sharing) configuration for A2A dispatchers.
- grpc
grpc - gRPC dispatcher for the A2A server.
- hsts
Strict-Transport-Securityon every response, opt-in (spec §13.4: agents SHOULD enforce HSTS on HTTP-based bindings).- jsonrpc
- JSON-RPC 2.0 dispatcher.
- rest
- REST dispatcher.
- websocket
websocket - WebSocket dispatcher for bidirectional A2A communication.
Structs§
- Combined
Dispatcher - JSON-RPC and HTTP+JSON for one
RequestHandleron one listener; see the module docs for how a request is routed. - Cors
Config - CORS configuration for A2A dispatchers.
- Dispatch
Config - Configuration for dispatch-layer limits shared by both JSON-RPC and REST dispatchers.
- Grpc
Config - Configuration for the gRPC dispatcher.
- Grpc
Dispatcher - gRPC dispatcher that routes A2A requests to a
RequestHandler. - Hsts
- Wraps any
Dispatcherand addsStrict-Transport-Securityto each of its responses. - Json
RpcDispatcher - JSON-RPC 2.0 request dispatcher.
- Rest
Dispatcher - REST HTTP request dispatcher.
- WebSocket
Dispatcher - WebSocket-based A2A dispatcher.
- WebSocket
Upgrades - The WebSocket connections an HTTP dispatcher upgrades.
Constants§
- A2A_
VERSION_ METADATA_ KEY - The service parameter naming the A2A protocol version, spelled the way a non-HTTP binding carries it.
Functions§
- validate_
version_ metadata - Validates the A2A version carried in a binding’s request metadata.