baghttp

package
v0.0.0-...-b70e656 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2025 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoteAddr

func RemoteAddr(r *http.Request) string

func RemoteIP

func RemoteIP(r *http.Request) string

Types

type InstrumentedResponseWriter

type InstrumentedResponseWriter struct {
	http.ResponseWriter
	// contains filtered or unexported fields
}

func (*InstrumentedResponseWriter) Flush

func (iw *InstrumentedResponseWriter) Flush()

func (*InstrumentedResponseWriter) Info

func (*InstrumentedResponseWriter) Write

func (iw *InstrumentedResponseWriter) Write(p []byte) (int, error)

func (*InstrumentedResponseWriter) WriteHeader

func (iw *InstrumentedResponseWriter) WriteHeader(status int)

type ResponseInstrumentationInfo

type ResponseInstrumentationInfo struct {
	Written     int64
	Status      int32
	ContentType string
}

Jump to

Keyboard shortcuts

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