Documentation
¶
Overview ¶
Package sse provides Server-Sent Events (SSE) implementation for A2A.
Index ¶
Constants ¶
View Source
const ( // ContentEventStream is the MIME type for Server-Sent Events. ContentEventStream = "text/event-stream" // MaxSSETokenSize is the maximum size for SSE data lines (10MB). // The default bufio.Scanner buffer of 64KB is insufficient for large payloads MaxSSETokenSize = 10 * 1024 * 1024 // 10MB )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SSEWriter ¶
type SSEWriter struct {
// contains filtered or unexported fields
}
SSEWriter wraps http.ResponseWriter to provide SSE writing capabilities.
func NewWriter ¶
func NewWriter(w http.ResponseWriter) (*SSEWriter, error)
NewWriter creates a new SSEWriter.
func (*SSEWriter) WriteHeaders ¶
func (w *SSEWriter) WriteHeaders()
WriteHeaders writes the standard SSE headers.
Click to show internal directories.
Click to hide internal directories.