http

package
v0.0.0-...-8ffad75 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRequest

func LogRequest(next http.Handler) http.Handler

LogRequest logs incoming requests (method and URL).

Types

type Middleware

type Middleware = func(next http.Handler) http.Handler

Middleware wraps an http.Handler, returning a new http.Handler.

func InjectLogger

func InjectLogger(log logr.Logger) Middleware

InjectLogger is a Middleware to inject the given logr.Logger into the http.Request.Context.

Jump to

Keyboard shortcuts

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