requests

package
v0.0.0-...-3a5126a Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunWorker

func RunWorker(w *Work, results chan<- Result)

RunWorker sends an HTTP GET request to the specified URL.

Types

type Result

type Result struct {
	StatusCode int
	Body       string
	Duration   time.Duration
	Error      error
}

Result represents the result of a HTTP request.

type Work

type Work struct {
	URL               string
	N                 int
	C                 int
	DisableKeepAlives bool
}

Jump to

Keyboard shortcuts

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