middleware

package
v0.17.40 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestDebugLogger

func RequestDebugLogger(next http.Handler) http.Handler

func SetResponseTypeToJson

func SetResponseTypeToJson(next http.Handler) http.Handler

func UseStatusWriter

func UseStatusWriter(next http.Handler) http.Handler

Types

type StatusWriter

type StatusWriter struct {
	http.ResponseWriter

	RequestId string
	// contains filtered or unexported fields
}

func (*StatusWriter) Write

func (w *StatusWriter) Write(b []byte) (int, error)

func (*StatusWriter) WriteHeader

func (w *StatusWriter) WriteHeader(status int)

Jump to

Keyboard shortcuts

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