httplog

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package httplog is logging utilities for HTTP server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPLogger

type HTTPLogger struct {
	Logger  logger.Logger
	Handler http.Handler
}

HTTPLogger is logging middleware for http.Handler.

func (HTTPLogger) ServeHTTP

func (h HTTPLogger) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP is call h.Handler(w, r) and logging request/response.

Jump to

Keyboard shortcuts

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