httpx

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Latency

type Latency struct {
	TTFB         int `csv:"ttfb",json:"ttfb""`
	DNSresolve   int `csv:"dnsResolve",json:"dnsResolve"`
	Connect      int `csv:"conn",json:"connect"`
	TLSHandshake int `csv:"tlsHandShake",json:"tlsHandShake"`
}

type Result

type Result struct {
	ProxyURL       string  `csv:"proxy",json:"proxy"`
	Status         bool    `csv:"result",json:"result"`
	TargetURL      string  `csv:"-",json:"endpoint"`
	RespStatusCode int     `csv:"targetStatus",json:"targetStatus"`
	RespBody       string  `csv:"-",json:"-"`
	Latency        Latency `csv:"latency",json:"latency"`
	Error          error   `csv:"error",json:"error"`
}

func TestHTTP

func TestHTTP(targetURL *url.URL, proxyURL *url.URL, timeOut int, includeRespBody bool) (res *Result, err error)

Jump to

Keyboard shortcuts

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