http: Add UnderlyingResponseWriter function
This commit is contained in:
parent
8142e520f5
commit
5124e6f8f7
@ -77,6 +77,13 @@ func (this WrappedHeader) Set (name, value string) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// UnderlyingResponseWriter returns the underlying http.ResponseWriter of a
|
||||
// WrappedResponseWriter. This is a separate function because it should not be
|
||||
// directly accessible to templates.
|
||||
func UnderlyingResponseWriter (writer WrappedResponseWriter) http.ResponseWriter {
|
||||
return writer.responseWriter
|
||||
}
|
||||
|
||||
var _ http.ResponseWriter = new(HTTPResponseRecorder)
|
||||
|
||||
// HTTPResponseRecorder is an http.ResponseWriter that can buffer a response to
|
||||
|
Loading…
Reference in New Issue
Block a user