httpreq

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestOptions

type RequestOptions struct {
	ConnectTimeoutMillis int64 `toml:"connect_timeout_millis"`
	RequestTimeoutMillis int64 `toml:"request_timeout_millis"`
	MaxIdleConnsPerHost  int   `toml:"max_idle_conns_per_host"`

	BasicAuthUser   string   `toml:"basic_auth_user"`
	BasicAuthPass   string   `toml:"basic_auth_pass"`
	BearerToken     string   `toml:"bearer_token"`
	BearerTokeFile  string   `toml:"bearer_token_file"`
	Headers         []string `toml:"headers"`
	ProxyURL        string   `toml:"proxy_url"`
	FollowRedirects bool     `toml:"follow_redirects"`
	Interface       string   `toml:"interface"`
}

func (*RequestOptions) FillHeaders

func (o *RequestOptions) FillHeaders(req *http.Request, baseDirs ...string) error

func (*RequestOptions) NewClient

func (o *RequestOptions) NewClient(tlsConfig *tls.Config, disableKeepAlives bool) (*http.Client, error)

Jump to

Keyboard shortcuts

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