Skip to content

httputil: enhance JSONDebugClient with SSE and header debugging - #1404

Merged
tmc merged 1 commit into
mainfrom
httputil-sse-support
Sep 17, 2025
Merged

tmc merged 1 commit into
mainfrom
httputil-sse-support

Conversation

@tmc

@tmc tmc commented Sep 17, 2025

Copy link
Copy Markdown
Owner

adds sse and header support to JSONDebugClient

- Add Server-Sent Events (SSE) streaming support to JSONDebugClient
- Display HTTP request/response headers with sensitive value scrubbing
- Parse and highlight token usage from streaming API events
- Support thinking mode deltas from Claude's reasoning mode
- Switch output from stdout to stderr to avoid interfering with pipelines
- Maintain backward compatibility while significantly expanding capabilities

The enhanced JSONDebugClient now provides comprehensive debugging for both
traditional JSON APIs and modern SSE streaming endpoints, making it especially
useful for debugging LLM APIs like Anthropic's Claude.
@tmc
tmc force-pushed the httputil-sse-support branch from 4864c75 to e4c24e7 Compare September 17, 2025 06:33
@tmc
tmc merged commit 900c1b9 into main Sep 17, 2025
83 checks passed
@tmc
tmc deleted the httputil-sse-support branch September 17, 2025 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant