helpttp

package module
v0.0.0-...-6d75768 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 3 Imported by: 1

README

HelpTTP

A collection of HTTP methods that I frequently find useful, available as a library.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithLog

func WithLog(next http.Handler) http.Handler

WithLog wraps an HTTP handler and logs the request method and path before calling the inner handler.

func WithTimer

func WithTimer(next http.Handler) http.Handler

WithTimer wraps an HTTP handler and logs the time elapsed while calling the inner handler after it completes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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