Skip to content

Close websocket v1 gaps and add logger interceptor#29

Merged
fannnzhang merged 4 commits intomainfrom
feature/websocket-gap-closure
May 4, 2026
Merged

Close websocket v1 gaps and add logger interceptor#29
fannnzhang merged 4 commits intomainfrom
feature/websocket-gap-closure

Conversation

@fannnzhang
Copy link
Copy Markdown
Contributor

Summary

  • close the remaining v1 websocket gaps on this branch, including the fastwebsockets engine integration and websocket listener/test coverage
  • add a built-in OkHttp-style LoggerInterceptor with LogLevel::{Basic, Headers, Body}
  • pretty-print JSON bodies with serde_json::to_writer_pretty, redact sensitive headers by default, and omit streaming or oversized bodies instead of fully draining them
  • update the logging example and README to document the new interceptor and its HTTP-only scope

Validation

  • cargo test -p openwire --lib logging::tests --features websocket
  • cargo check -p openwire --example logging_interceptor --features websocket
  • cargo check -p openwire --all-targets --features websocket

@fannnzhang fannnzhang merged commit 08b5423 into main May 4, 2026
6 checks passed
@fannnzhang fannnzhang deleted the feature/websocket-gap-closure branch May 4, 2026 10:12
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