Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPStatistics ¶
type HTTPStatistics struct {
Seq int
ConnectedTo string
URL *url.URL
Location *url.URL
Response *http.Response // TODO: HTTPX.X 200 OK TODO: Headers
ResponseHeaders headers
ResponseBody string
ResponseBodyBytes int
TLSHandshakeComplete bool
DNSLookup time.Duration
TCPConnection time.Duration
TLSHandshake time.Duration
ServerProcessing time.Duration
ContentTransfer time.Duration
NameLookup time.Duration
Connect time.Duration
PreTransfer time.Duration
StartTransfer time.Duration
Total time.Duration
SkippedDNS bool
Err error
}
type HttpStatusTester ¶
type HttpStatusTester struct {
HTTPMethod string
RequestBody string
FollowRedirects bool
MaxRedirects int
OnlyHeader bool
Insecure bool
HTTPHeaders headers
ClientCertFile string
FourOnly bool
SixOnly bool
DiscardResponseBody bool
Statistics []*HTTPStatistics
// contains filtered or unexported fields
}
func NewHttpStatusTester ¶
func NewHttpStatusTester(uri string) (*HttpStatusTester, error)
func (*HttpStatusTester) Run ¶
func (c *HttpStatusTester) Run() error
Click to show internal directories.
Click to hide internal directories.