Skip to content

Commit 97def14

Browse files
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/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
build_error_response,
1414
prepare_response_object,
1515
)
16-
from a2a.server.request_handlers.rest_handler import RESTHandler
1716

1817

1918
logger = logging.getLogger(__name__)
@@ -42,7 +41,6 @@ def __init__(self, *args, **kwargs):
4241
__all__ = [
4342
'DefaultRequestHandler',
4443
'GrpcHandler',
45-
'RESTHandler',
4644
'RequestHandler',
4745
'build_error_response',
4846
'prepare_response_object',

src/a2a/server/request_handlers/rest_handler.py

Lines changed: 0 additions & 334 deletions
This file was deleted.

0 commit comments

Comments
 (0)