handlers

package
v0.0.3-0...-d907587 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureRequestID

func EnsureRequestID(next http.Handler) http.Handler

EnsureRequestID will create a Request ID header if one is not found.

The EnsureRequestID handler is added automatically if you use the api.StartHTTPSServer function.

func LoggingAndMetrics

func LoggingAndMetrics(h http.Handler) http.Handler

LoggingAndMetrics is an HTTP handler that will log all HTTP requests and responses using the logging library and increment request and response counts in statsd. A good practice is to wrap your top-level mux in this handler.

The LoggingAndMetrics handler is added automatically if you use the api.StartHTTPSServer function.

func NotImplemented

func NotImplemented() http.Handler

NotImplemented simply returns a 501 Not Implemented

Types

This section is empty.

Jump to

Keyboard shortcuts

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