Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler wraps the HTTP handler and returns a new handler which logs all requests to logger.
Panics from handler are intercepted and trigger a 500 response if no response header was sent yet. The panic is not slienced tho and is propagated to the parent handler.
func NewTransport ¶
func NewTransport(logger *events.Logger, roundTripper http.RoundTripper) http.RoundTripper
NewTransport wraps roundTripper and returns a new transport which logs all submitted requests with logger.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.