debugmiddleware

package
v0.1.0-alpha.65 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 5 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