Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Lightweight server module handling http middlewares

License

Notifications You must be signed in to change notification settings

giantswarm/middleware-server

Repository files navigation

middleware-server

Lightweight server module, handling http middlewares.

Docs

http://godoc.org/github.com/giantswarm/middleware-server

Install

$ go get github.com/giantswarm/middleware-server

Import

import "github.com/giantswarm/middleware-server"

Usage

See the examples

make build-examples

Responders

http://godoc.org/github.com/giantswarm/middleware-server#Response

Access Logging

There is a access logging implemented by default when setting a logger.

# format: date time file:line: [level] METHOD path code bytes milliseconds
2014/05/28 12:51:22 logaccess.go:56: [INFO] GET /v1/hello-world 200 11 0