Expand description
HTTP REST transport implementation.
RestTransport maps A2A method names to REST HTTP verb + path
combinations, extracts path parameters from the JSON params, and sends
standard JSON bodies.
§Module structure
| Module | Responsibility |
|---|---|
query | Query-string encoding |
routing | Method → HTTP verb + path mapping |
request | URI/request building and synchronous execution |
streaming | SSE streaming execution and body reader |
§Method → REST mapping
| A2A method | HTTP verb | Path |
|---|---|---|
SendMessage | POST | /message:send |
SendStreamingMessage | POST | /message:stream |
GetTask | GET | /tasks/{id} |
CancelTask | POST | /tasks/{id}:cancel |
ListTasks | GET | /tasks |
SubscribeToTask | POST | /tasks/{id}:subscribe |
CreateTaskPushNotificationConfig | POST | /tasks/{id}/pushNotificationConfigs |
GetTaskPushNotificationConfig | GET | /tasks/{id}/pushNotificationConfigs/{configId} |
ListTaskPushNotificationConfigs | GET | /tasks/{id}/pushNotificationConfigs |
DeleteTaskPushNotificationConfig | DELETE | /tasks/{id}/pushNotificationConfigs/{configId} |
GetExtendedAgentCard | GET | /extendedAgentCard |
Structs§
- Rest
Transport - REST transport: HTTP verbs mapped to REST paths.