http

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRequest added in v0.1.1

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