http

package
v0.0.0-...-4b634d0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidResponse = errors.New("invalid response status")

ErrInvalidResponse is raised when a request returns a code different than 200.

Functions

This section is empty.

Types

type Tester

type Tester struct {
	Timeout   time.Duration
	Validator protocol.ResponseValidator
	// contains filtered or unexported fields
}

Tester is a load tester for HTTP.

func (*Tester) After

func (t *Tester) After(_ interface{})

After is called after all tests are finished.

func (*Tester) AfterEach

func (t *Tester) AfterEach(_ interface{})

AfterEach is called after every test.

func (*Tester) Before

func (t *Tester) Before(options interface{}) error

Before is called before the first test.

func (*Tester) BeforeEach

func (t *Tester) BeforeEach(_ interface{}) error

BeforeEach is called before every test.

func (*Tester) RequestExecutor

func (t *Tester) RequestExecutor(options interface{}) (bender.RequestExecutor, error)

RequestExecutor returns a request executor.

Jump to

Keyboard shortcuts

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