Documentation
¶
Overview ¶
Package middleware provides utilities to inject the response writer and request reader for the original *http.Request into the context and also retrieve it.
Index ¶
Constants ¶
View Source
const ResponseWriterKey responseWriterKey = "response-writer"
ResponseWriterKey is the context key for the response writer.
Variables ¶
This section is empty.
Functions ¶
func ResponseWriterFromContext ¶
func ResponseWriterFromContext(ctx context.Context) (http.ResponseWriter, error)
ResponseWriterFromContext is a helper function that retrieves the response writer from the context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.