httpaccess

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPAccessLogHandler

func NewHTTPAccessLogHandler(logger log.Logger, t *tracer.Tracer, message string, trafficHandler func(time time.Time, key string, upload bool, size int64)) func(h http.Handler) http.Handler

NewHTTPAccessLogHandler creates a handler that will log a message after a request has been served.

func NewHTTPAccessSuppressLogHandler

func NewHTTPAccessSuppressLogHandler() func(h http.Handler) http.Handler

NewHTTPAccessSuppressLogHandler creates a handler that will suppress access log messages.

Types

This section is empty.

Jump to

Keyboard shortcuts

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