Documentation
¶
Index ¶
Constants ¶
View Source
const ( 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
}
func (*SSEWriter) WriteHeaders ¶
func (w *SSEWriter) WriteHeaders()
Click to show internal directories.
Click to hide internal directories.