Documentation ¶
Overview ¶
Package http provides streaming implementations of various net/http types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ResponseWriter ¶
type ResponseWriter struct { http.ResponseWriter // contains filtered or unexported fields }
ResponseWriter provides an implementation of the http.ResponseWriter interface that is unbuffered. Every call to write will be flushed to the underyling connection and streamed to the client.
func StreamingResponseWriter ¶
func StreamingResponseWriter(w http.ResponseWriter) *ResponseWriter
StreamingResponseWriter wraps the http.ResponseWriter with unbuffered streaming. If the provided ResponseWriter does not implement http.Flusher, this function will panic.
Click to show internal directories.
Click to hide internal directories.