mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-19 02:28:08 -05:00
Add bidirectional streaming RPC for ServeHTTP hook to support efficient HTTP request/response transfer between Go and Python. Key changes: - New hooks_http.proto with ServeHTTPRequest/Response messages - HTTPHeader message for multi-value header support - ServeHTTPRequestInit with full request metadata - ServeHTTPResponseInit for status and headers - Body chunks with completion flag for streaming - Updated hooks.proto with ServeHTTP streaming RPC - Regenerated Go and Python code Design decisions: - 64KB default chunk size per gRPC best practices - First message carries metadata, subsequent messages carry body - body_complete flag signals end of stream - Headers as repeated HTTPHeader for multi-value support Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| scripts | ||
| src/mattermost_plugin | ||
| tests | ||
| pyproject.toml | ||