Expand description
HTTP dispatch layer — JSON-RPC and REST routing.
Re-exports§
pub use cors::CorsConfig;pub use grpc::GrpcConfig;pub use grpc::GrpcDispatcher;pub use jsonrpc::JsonRpcDispatcher;pub use rest::RestDispatcher;pub use websocket::WebSocketDispatcher;
Modules§
- axum_
adapter - Axum framework integration for A2A servers.
- cors
- CORS (Cross-Origin Resource Sharing) configuration for A2A dispatchers.
- grpc
- gRPC dispatcher for the A2A server.
- jsonrpc
- JSON-RPC 2.0 dispatcher.
- rest
- REST dispatcher.
- websocket
- WebSocket dispatcher for bidirectional A2A communication.
Structs§
- Dispatch
Config - Configuration for dispatch-layer limits shared by both JSON-RPC and REST dispatchers.
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.