Documentation ¶
Index ¶
- func DataDir(name string) string
- func DebugContextOut(ctx context.Context, w io.Writer)
- func DebugHandler(w io.Writer, next http.Handler) http.Handler
- func DebugMD(w io.Writer, mds ...metadata.MD)
- func DebugRequest(w io.Writer, req *http.Request)
- func DebugRequestOut(w io.Writer, req *http.Request)
- func DebugRequestTiming(w io.Writer, req *http.Request) *http.Request
- func DebugResponse(w io.Writer, resp *http.Response, body bool)
- func DebugTiming(w io.Writer, name string, dur time.Duration)
- func RandString(n int) string
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataDir ¶ added in v1.3.4
https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
func DebugContextOut ¶ added in v1.10.0
DebugContextOut logs outgoing metadata headers to w
func DebugHandler ¶ added in v1.7.0
DebugHandler returns an http.Handler that debugs incoming requests to w. next is called after writing to the debug writer.
func DebugRequest ¶
DebugRequest logs incoming http.Requests to w
func DebugRequestOut ¶
DebugRequestOut logs outgoing http.Requests to w
func DebugRequestTiming ¶ added in v1.10.0
DebugRequestTiming logs http request timing to w
func DebugResponse ¶
DebugResponse logs received http.Responses to w
func DebugTiming ¶ added in v1.10.0
DebugTiming logs timing information to w
Types ¶
Click to show internal directories.
Click to hide internal directories.