loggedwriter

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: BSD-3-Clause Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggedResponseWriter

type LoggedResponseWriter interface {
	http.ResponseWriter
	Status() int
}

LoggedResponseWriter define http.ResponseWriter with Status

func NewLoggedResponseWriter

func NewLoggedResponseWriter(w http.ResponseWriter) LoggedResponseWriter

NewLoggedResponseWriter wraps the provided http.ResponseWriter with Status preserving the support to hijack the connection if supported by the provided http.ResponseWriter.

Jump to

Keyboard shortcuts

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