From 185ddb82b58f04d1aaed4b1c0dcc82e1745681cb Mon Sep 17 00:00:00 2001 From: "glm-5.2" Date: Thu, 2 Jul 2026 09:29:11 +0000 Subject: [PATCH] =?UTF-8?q?docs(call):=20mark=20call/registry/streaming-ha?= =?UTF-8?q?ndler-handlerkind=20completed=20=E2=80=94=20StreamingHandler/Ha?= =?UTF-8?q?ndlerKind=20foundation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/call/registry/streaming-handler-handlerkind.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/call/registry/streaming-handler-handlerkind.md b/tasks/call/registry/streaming-handler-handlerkind.md index 550008a..18d8869 100644 --- a/tasks/call/registry/streaming-handler-handlerkind.md +++ b/tasks/call/registry/streaming-handler-handlerkind.md @@ -1,7 +1,7 @@ --- id: call/registry/streaming-handler-handlerkind name: Introduce StreamingHandler, HandlerKind, ResponseStream types and migrate HandlerRegistration to HandlerKind -status: pending +status: completed depends_on: [] scope: broad risk: medium @@ -253,4 +253,4 @@ need the explicit `HandlerKind::Once(...)` wrap. ## Summary -> To be filled on completion \ No newline at end of file +> Introduced StreamingHandler/ResponseStream type aliases and HandlerKind enum (Once|Stream) + make_streaming_handler() helper in registration.rs; added CallError::invalid_operation_type() (sixth protocol code, retryable: false) in wire.rs; flipped HandlerRegistration.handler to HandlerKind and changed new() signature; builder absorbs wrapping (with_local/with_leaf wrap Handler in Once for Query/Mutation, new with_local_streaming/with_leaf_streaming take StreamingHandler and wrap in Stream for Subscription) with kind/op_type mismatch validation; OperationRegistry::register() now returns Result<(), String> with clear mismatch message; invoke() errors on HandlerKind::Stream with INVALID_OPERATION_TYPE; OverlayOperationEnv::invoke_with_policy matches on HandlerKind (Stream -> INVALID_OPERATION_TYPE); migrated all ~95 HandlerRegistration::new() call sites to wrap in HandlerKind::Once(handler); updated two websocket subscription tests to expect INVALID_OPERATION_TYPE; added unit tests for invoke/register validation, make_streaming_handler, and overlay Stream-kind rejection. All verification passes (build, clippy -D warnings, test, fmt --check) for alknet-call + alknet-http. \ No newline at end of file