Versions in this module Expand all Collapse all v1 v1.0.1 Dec 28, 2022 v1.0.0 Dec 28, 2022 Changes in this version + func DefaultDebug(o *Options) + func ToBodyType(s string) color.BodyType + type Apply interface + Apply func(*Options) + func NoColor() Apply + func OnlyTraceFlag() Apply + func ToFile(fileName string, color bool) Apply + func ToWriter(w io.Writer, color bool) Apply + func Trace() Apply + type Func func(*Options) + func (f Func) Apply(o *Options) + type Options struct + Color bool + Debug bool + EscapeHTML bool + ReqBodyType string + RspBodyType string + Trace bool + Write io.Writer + func (do *Options) ResetBodyAndPrint(req *http.Request, resp *http.Response) error + type TraceInfo struct + ConnDuration time.Duration + DnsDuration time.Duration + RequestDuration time.Duration + ResponseDuration time.Duration + TLSDuration time.Duration + TotalDuration time.Duration + WaitResponeDuration time.Duration + func (t *TraceInfo) StartTrace(opt *Options, needTrace bool, req *http.Request, do middler.Do) (*http.Response, error)