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
Click to show internal directories.
Click to hide internal directories.