network

package
v0.0.0-...-7573e65 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemeHttp  = 0
	SchemeHttps = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpStatInfo

type HttpStatInfo struct {
	SchemeType       int               `json:"SchemeType"`
	Uri              string            `json:"Url"`
	ConnectedTo      string            `json:"To"`
	ConnectedVia     string            `json:"Via"`
	HttpInfo         string            `json:"HttpInfo"`
	Body             map[string]string `json:"Body"`
	DnsLookup        string            `json:"DnsLookup"`
	TcpConnection    string            `json:"TcpConnection"`
	TlsHandshake     string            `json:"TlsHandshake"`
	ServerProcessing string            `json:"ServerProcessing"`
	ContentTransfer  string            `json:"ContentTransfer"`
	NameLookup       string            `json:"NameLookup"`
	Connect          string            `json:"Connect"`
	Pretransfer      string            `json:"Pretransfer"`
	StartTransfer    string            `json:"StartTransfer"`
	Total            string            `json:"Total"`
	BodyDiscarded    string            `json:"BodyDiscarded"`
}

func HttpStat

func HttpStat(ctx context.Context, strUri string, status *widget.Label) HttpStatInfo

HttpStat 获取http状态

Jump to

Keyboard shortcuts

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