Versions in this module Expand all Collapse all v0 v0.1.0 Apr 13, 2020 Changes in this version + func Trace(client *http.Client, options ...Option) *http.Client + type CallbackFunc func(entry *Entry) + type Entry struct + Error error + Metric Metric + Request []string + Response []string + Time time.Time + type Metric struct + Connect time.Duration + ContentTransfer time.Duration + DNSLookup time.Duration + NameLookup time.Duration + PreTransfer time.Duration + ServerProcessing time.Duration + StartTransfer time.Duration + TCPConnection time.Duration + TLSHandshake time.Duration + Total time.Duration + type Option func(t *Tracer) + func WithBodies(value bool) Option + func WithCallback(callback CallbackFunc) Option + func WithWriter(writer io.Writer) Option + type Tracer struct + func New(transport http.RoundTripper, options ...Option) *Tracer + func (t *Tracer) ConnectDone(network, addr string, err error) + func (t *Tracer) ConnectStart(network, addr string) + func (t *Tracer) DNSDone(_ httptrace.DNSDoneInfo) + func (t *Tracer) DNSStart(_ httptrace.DNSStartInfo) + func (t *Tracer) GotConn(_ httptrace.GotConnInfo) + func (t *Tracer) GotFirstResponseByte() + func (t *Tracer) HTTPMetric() Metric + func (t *Tracer) HTTPSMetric() Metric + func (t *Tracer) RoundTrip(req *http.Request) (*http.Response, error) + func (t *Tracer) TLSHandshakeDone(_ tls.ConnectionState, err error) + func (t *Tracer) TLSHandshakeStart()