Commit 97def14
authored
refactor(server): move REST routing into dedicated RestDispatcher (#900)
# Description
This PR centralizes the execution logic for REST endpoints by extracting
it from the routing layer (`rest_routes.py`) into a dedicated
`RestDispatcher` class. It simplifies the pipeline by directly binding
the server endpoints to the core RequestHandler.
Fixes #797 🦕1 parent 9ccf99c commit 97def14
6 files changed
Lines changed: 766 additions & 480 deletions
File tree
- src/a2a
- server
- request_handlers
- routes
- utils
- tests/server/routes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | | - | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
| |||
This file was deleted.
0 commit comments