Versions in this module Expand all Collapse all v0 v0.9.0 Jun 15, 2015 Changes in this version + var DefaultErrorHandler = func(err error, w http.ResponseWriter, r *http.Request) + var DefaultGenerator = context.Background + var StdoutLogger = stdLogger(os.Stdout) + func InsertLogger(h httpx.Handler, f func(context.Context, *http.Request) logger.Logger) httpx.Handler + func LogTo(h httpx.Handler, f func(context.Context, *http.Request) logger.Logger) httpx.Handler + type Background struct + Generate func() context.Context + func BackgroundContext(h httpx.Handler) *Background + func (h *Background) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (h *Background) ServeHTTPContext(ctx context.Context, w http.ResponseWriter, r *http.Request) error + type Error struct + ErrorHandler func(error, http.ResponseWriter, *http.Request) + func HandleError(h httpx.Handler, f func(error, http.ResponseWriter, *http.Request)) *Error + func NewError(h httpx.Handler) *Error + func (h *Error) ServeHTTPContext(ctx context.Context, w http.ResponseWriter, r *http.Request) error + type Logger struct + func Log(h httpx.Handler) *Logger + func (h *Logger) ServeHTTPContext(ctx context.Context, w http.ResponseWriter, r *http.Request) error + type NewRelicTracer struct + func NewRelicTracing(h httpx.Handler, router *httpx.Router, tracer newrelic.TxTracer) *NewRelicTracer + func (h *NewRelicTracer) ServeHTTPContext(ctx context.Context, w http.ResponseWriter, r *http.Request) error + type Recovery struct + func Recover(h httpx.Handler, r reporter.Reporter) *Recovery + func (h *Recovery) ServeHTTPContext(ctx context.Context, w http.ResponseWriter, r *http.Request) (err error) + type ResponseWriter interface + Status func() int + func NewResponseWriter(rw http.ResponseWriter) ResponseWriter