Skip to main content

Module dispatch

Module dispatch 

Source
Expand description

HTTP dispatch layer — JSON-RPC and REST routing, apart or on one listener (CombinedDispatcher).

Modules§

axum_adapteraxum
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.
grpcgrpc
gRPC dispatcher for the A2A server.
hsts
Strict-Transport-Security on every response, opt-in (spec §13.4: agents SHOULD enforce HSTS on HTTP-based bindings).
jsonrpc
JSON-RPC 2.0 dispatcher.
rest
REST dispatcher.
websocketwebsocket
WebSocket dispatcher for bidirectional A2A communication.

Structs§

CombinedDispatcher
JSON-RPC and HTTP+JSON for one RequestHandler on one listener; see the module docs for how a request is routed.
CorsConfig
CORS configuration for A2A dispatchers.
DispatchConfig
Configuration for dispatch-layer limits shared by both JSON-RPC and REST dispatchers.
GrpcConfig
Configuration for the gRPC dispatcher.
GrpcDispatcher
gRPC dispatcher that routes A2A requests to a RequestHandler.
Hsts
Wraps any Dispatcher and adds Strict-Transport-Security to each of its responses.
JsonRpcDispatcher
JSON-RPC 2.0 request dispatcher.
RestDispatcher
REST HTTP request dispatcher.
WebSocketDispatcher
WebSocket-based A2A dispatcher.
WebSocketUpgrades
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.