middleware

package
v0.16.26 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 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