http

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(logger *xlog.Logger, opts ...Option) func(nethttp.Handler) nethttp.Handler

Types

type MiddlewareConfig

type MiddlewareConfig struct {
	RequestIDHeader string
	Clock           func() time.Time
}

func DefaultConfig

func DefaultConfig() MiddlewareConfig

type Option

type Option func(*MiddlewareConfig)

func WithClock

func WithClock(clock func() time.Time) Option

func WithRequestIDHeader

func WithRequestIDHeader(header string) Option

Jump to

Keyboard shortcuts

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