Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HijackResponseWriter ¶
func HijackResponseWriter(ctx context.Context) http.ResponseWriter
HijackResponseWriter retrieves the http.ResponseWriter from the context. When the ResponseWriter is hijacked, the return value from HandlerFunc will be ignored.
func WithResponseWriter ¶
func WithResponseWriter(ctx context.Context, rwRead *atomic.Bool, rw http.ResponseWriter) context.Context
WithResponseWriter stores the http.ResponseWriter in the context. It returns a new context containing the response writer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.