Skip to content

Financial-Times/http-handlers-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

HttpHandlers that provide common functionality needed for applications (e.g. recording metrics, transactionID logging)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages