middleware

package
v0.1.81 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL