http_clients

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ReqURI            string
	DisableKeepAlive  bool
	SkipVerify        bool
	MTLSKey           string
	MTLSCert          string
	ReqTarget         int64
	Ctx               context.Context
	StartTrigger      *sync.WaitGroup
	Until             time.Duration
	ReqEvery          time.Duration
	ReadTimeout       time.Duration
	WriteTimeout      time.Duration
	Method            string
	Verbose           bool
	JwtStreamReceiver <-chan string
	JWTHeader         string
	Headers           []string
	Body              string
	BodyFile          string
	NetHTTP           bool
	HTTPV3            bool
	ReqStats          chan<- time.Duration
	Client            string
	Parallel          bool
}

func (*Config) ReqLimitedOnly

func (c *Config) ReqLimitedOnly() bool

func (*Config) UnlimitedReqs

func (c *Config) UnlimitedReqs() bool

type GoPayLoaderClient

type GoPayLoaderClient interface {
	Do(req Request, resp Response) error
	NewReq(method, url string) (Request, error)
	NewResponse() Response
	CloseConns()
	HTTP2() bool
}

type Request

type Request interface {
	SetHeader(key, val string)
	SetBody(body []byte)
	Size() int64
}

type Response

type Response interface {
	StatusCode() int
	Size() int64
	Close()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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