Without flusher.Flush() after WriteHeader, the HTTP response headers were buffered and never sent to the client, causing SSE clients to hang indefinitely waiting for the initial response. - Add flusher.Flush() after WriteHeader in HandleSSE - Add TestSSEStreamReceivesEventOnCapture integration test: starts test server, subscribes to SSE, captures a request, and verifies the event arrives within 2s Co-Authored-By: Paperclip <noreply@paperclip.ing> |
||
|---|---|---|
| .. | ||
| handler_test.go | ||
| handler.go | ||
| inspect.go | ||
| mock.go | ||
| replay_test.go | ||
| replay.go | ||
| sse.go | ||