Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggingResponseWriter ¶
type LoggingResponseWriter struct {
// contains filtered or unexported fields
}
LoggingResponseWriter is the ubiquitous reimplementation of a response writer that allows access to the HTTP status code in middleware.
func NewLoggingResponseWriter ¶
func NewLoggingResponseWriter(next http.ResponseWriter) *LoggingResponseWriter
func (*LoggingResponseWriter) Body ¶ added in v0.1.62
func (w *LoggingResponseWriter) Body() *bytes.Buffer
func (*LoggingResponseWriter) Header ¶
func (w *LoggingResponseWriter) Header() http.Header
func (*LoggingResponseWriter) StatusCode ¶
func (w *LoggingResponseWriter) StatusCode() int
func (*LoggingResponseWriter) Write ¶
func (w *LoggingResponseWriter) Write(body []byte) (int, error)
func (*LoggingResponseWriter) WriteHeader ¶
func (w *LoggingResponseWriter) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.