http

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Readtiming

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

HTTP timing result.

func (*Readtiming) O

func (r *Readtiming) O() int

Offset in stream of reply data.

func (*Readtiming) T

func (r *Readtiming) T() float64

Time since starting to connect when data is received (in milli seconds).

func (*Readtiming) UnmarshalJSON

func (r *Readtiming) UnmarshalJSON(b []byte) error

type Result

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

HTTP result.

func (*Result) Af

func (r *Result) Af() int

Address family, 4 or 6.

func (*Result) Bsize

func (r *Result) Bsize() int

Size of body in octets.

func (*Result) Dnserr

func (r *Result) Dnserr() string

DNS resolution failed (optional).

func (*Result) DstAddr

func (r *Result) DstAddr() string

Target address.

func (*Result) Err

func (r *Result) Err() string

Other failure (optional).

func (*Result) Header

func (r *Result) Header() []string

The last string can be empty to indicate the end of enders or end with "[...]" to indicate truncation (optional).

func (*Result) Hsize

func (r *Result) Hsize() int

Header size in octets.

func (*Result) Method

func (r *Result) Method() string

"GET", "HEAD", or "POST".

func (*Result) Readtimings

func (r *Result) Readtimings() []*Readtiming

Timing results for reply data (optional).

func (*Result) Res

func (r *Result) Res() int

HTTP result code.

func (*Result) Rt

func (r *Result) Rt() float64

Time to execute request excluding DNS.

func (*Result) SrcAddr

func (r *Result) SrcAddr() string

Source address used by probe.

func (*Result) Subid

func (r *Result) Subid() int

Sequence number of this result within a group of results, when the 'all' option is used without the 'combine' option (optional).

func (*Result) Submax

func (r *Result) Submax() int

Total number of results within a group (optional).

func (*Result) Time

func (r *Result) Time() int

Unix timestamp, when the 'all' option is used with the 'combine' option (optional).

func (*Result) Ttc

func (r *Result) Ttc() float64

Time to connect to the target (in milli seconds) (optional).

func (*Result) Ttfb

func (r *Result) Ttfb() float64

Time to first response byte received by measurent code after starting to connect (in milli seconds) (optional).

func (*Result) Ttr

func (r *Result) Ttr() float64

Time to resolve the DNS name (in milli seconds) (optional).

func (*Result) UnmarshalJSON

func (r *Result) UnmarshalJSON(b []byte) error

func (*Result) Ver

func (r *Result) Ver() string

Major, minor version of http server.

Jump to

Keyboard shortcuts

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