Help us shape the future of Go! Take the 2026 Go Developer Survey

http

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsSignInfo

type AwsSignInfo struct {
	Region  string
	Service string
}

type Generator

type Generator struct {
	Headers map[string]string
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(id int, o GeneratorOptions, ctx context.Context, requestrate int, s *stats.Stats) *Generator

func (*Generator) CloseIdleConnections

func (g *Generator) CloseIdleConnections()

func (*Generator) CreateFormMultiPart

func (g *Generator) CreateFormMultiPart(formFields map[string][]string) (body, boundary string, err error)

Multi-part form

func (*Generator) CreateFormUrlEncoded

func (g *Generator) CreateFormUrlEncoded(formFields map[string][]string) (string, error)

Url encoded form

func (*Generator) Do

func (g *Generator) Do(method string, Url string, headers map[string]string,
	body string) (*http.Response, error)

func (*Generator) DoFormMultipart

func (g *Generator) DoFormMultipart(method string, Url string, headers map[string]string,
	params map[string][]string) (*http.Response, error)

func (*Generator) DoFormUrl

func (g *Generator) DoFormUrl(method string, Url string, headers map[string]string,
	params map[string][]string) (*http.Response, error)

func (*Generator) Finish

func (g *Generator) Finish() error

func (*Generator) GetCookies

func (g *Generator) GetCookies(url string) ([]*http.Cookie, error)

func (*Generator) Init

func (g *Generator) Init() error

func (*Generator) InitDone

func (g *Generator) InitDone() error

func (*Generator) SetTlsServerName

func (g *Generator) SetTlsServerName(n string)

func (*Generator) Tick

func (g *Generator) Tick() error

type GeneratorOptions

type GeneratorOptions struct {
	Url                 url.URL
	Data                string
	DiscardResponse     bool
	StreamResponse      bool
	KeepAlive           bool
	Method              string
	Headers             map[string]string
	ProxyHeaders        map[string]string
	Insecure            bool
	AggregateMethodPath map[string]map[*regexp.Regexp]string
	TlsServerName       string
	RootCAs             []string
	DisableCompression  bool
	DisableCookieJar    bool
	AwsSign             bool
	AwsSignInfo         AwsSignInfo
	PrintCurl           bool
}

func NewOptions

func NewOptions() *GeneratorOptions

Jump to

Keyboard shortcuts

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