Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureRequestID ¶
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 ¶
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 ¶
NotImplemented simply returns a 501 Not Implemented
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.