http-handlers-go

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: MIT Imports: 0 Imported by: 0

README

Http handlers

Handlers that provide common functionality that many apps will need.

For example:

  • HTTPMetricsHandler decorates all requests with a metrics.Timer, one for each http method. If you have a metrics export set up for the default metrics repository, these metrics will be exported.
  • TransactionAwareRequestLoggingHandler will extract a transactionID passed in as a header on the request and output it in a request log message. This is similar to the gorilla/mux CombinedOutputLogging handler, but uses a UPP logger to write out the request logs, as well as adding in the transactionID.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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