Help us shape the future of Go! Take the 2026 Go Developer Survey

debugmiddleware

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware = func(*http.Request, MiddlewareNext) (*http.Response, error)

For the time being these type definitions are duplicated here so that we can test this file in a non-generated context.

type MiddlewareNext

type MiddlewareNext = func(*http.Request) (*http.Response, error)

For the time being these type definitions are duplicated here so that we can test this file in a non-generated context.

type RequestLogger

type RequestLogger struct {
	// contains filtered or unexported fields
}

RequestLogger is a middleware that logs HTTP requests and responses.

func NewRequestLogger

func NewRequestLogger() *RequestLogger

NewRequestLogger returns a new RequestLogger instance with default options.

func (*RequestLogger) Middleware

func (m *RequestLogger) Middleware() Middleware

Jump to

Keyboard shortcuts

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