trace

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Timings

type Timings struct {
	DNSDuration             time.Duration // DNS lookup duration
	ConnectionDialDuration  time.Duration // Duration of time it takes to establish connection to destination server
	TLSDuration             time.Duration // Duration of TLS handshake
	TotalConnectionDuration time.Duration // Total connection setup (DNS lookup, Dial up and TLS) duration
	RequestWriteDuration    time.Duration // Request write duration, from successful connection to completing write
	ResponseDelayDuration   time.Duration // Delay duration between request being written and first byte of response being received
	ResponseReadDuration    time.Duration // Response read duration, from receiving first byte of response to completing read
	TotalRequestDuration    time.Duration // Total duration of the request (sending request, receiving and parsing response)
	// contains filtered or unexported fields
}

type Trace

type Trace struct {
	// contains filtered or unexported fields
}

func New

func New(client *http.Client, request *http.Request) *Trace

func (*Trace) Execute

func (t *Trace) Execute() error

func (*Trace) GetResponse

func (t *Trace) GetResponse() *http.Response

func (*Trace) GetResponseBody

func (t *Trace) GetResponseBody() string

func (*Trace) GetTimings

func (t *Trace) GetTimings() *Timings

func (*Trace) SetHeaders

func (t *Trace) SetHeaders(raw []string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL