Skip to main content

Module rest

Module rest 

Source
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

ModuleResponsibility
queryQuery-string encoding
routingMethod → HTTP verb + path mapping
requestURI/request building and synchronous execution
streamingSSE streaming execution and body reader

§Method → REST mapping

A2A methodHTTP verbPath
SendMessagePOST/message:send
SendStreamingMessagePOST/message:stream
GetTaskGET/tasks/{id}
CancelTaskPOST/tasks/{id}:cancel
ListTasksGET/tasks
SubscribeToTaskPOST/tasks/{id}:subscribe
CreateTaskPushNotificationConfigPOST/tasks/{id}/pushNotificationConfigs
GetTaskPushNotificationConfigGET/tasks/{id}/pushNotificationConfigs/{configId}
ListTaskPushNotificationConfigsGET/tasks/{id}/pushNotificationConfigs
DeleteTaskPushNotificationConfigDELETE/tasks/{id}/pushNotificationConfigs/{configId}
GetExtendedAgentCardGET/extendedAgentCard

Structs§

RestTransport
REST transport: HTTP verbs mapped to REST paths.