Documentation ¶ Index ¶ func Common(h httpx.Handler, opts CommonOpts) http.Handler type CommonOpts Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Common ¶ func Common(h httpx.Handler, opts CommonOpts) http.Handler Common wraps the httpx.Handler with some common middleware. Types ¶ type CommonOpts ¶ type CommonOpts struct { // A Reporter to use to report errors and panics. Reporter reporter.Reporter // A logger to log requests to. Logger log15.Logger } Source Files ¶ View all Source files middleware.go Click to show internal directories. Click to hide internal directories.