From f55add39ab36172fae9890b7915b4424bda52584 Mon Sep 17 00:00:00 2001 From: Jarvis Date: Wed, 25 Feb 2026 16:20:36 -0600 Subject: [PATCH] test(agentic): batch probe #22 (json) --- internal/handler/agentic_probe_batch_22.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 internal/handler/agentic_probe_batch_22.go diff --git a/internal/handler/agentic_probe_batch_22.go b/internal/handler/agentic_probe_batch_22.go new file mode 100644 index 0000000..80edff5 --- /dev/null +++ b/internal/handler/agentic_probe_batch_22.go @@ -0,0 +1,18 @@ +package handler + +import ( + "encoding/json" + "net/http" +) + +type AgenticProbeBatch22Payload struct { + Name string +} + +func AgenticProbeBatch22(w http.ResponseWriter, r *http.Request) error { + var p AgenticProbeBatch22Payload + dec := json.NewDecoder(r.Body) + _ = dec.Decode(&p) + _ = json.NewEncoder(w).Encode(map[string]any{"ok": true, "name": p.Name}) + return nil +}