Documentation ¶
Index ¶
- func IsTransientError(code int) bool
- func ParseHeaderArgument(header *http.Header, h string) (key string, err error)
- type Curlier
- type CurlierConfig
- func (inst *CurlierConfig) FromContext(nameTransf config.NameTransformFunc, ctx *cli.Context) (nMessages int)
- func (inst *CurlierConfig) GetHeaders() (keys []string, header *http.Header, err error)
- func (inst *CurlierConfig) ToCliFlags(nameTransf config.NameTransformFunc, envVarNameTransf config.NameTransformFunc) []cli.Flag
- func (inst *CurlierConfig) Validate(force bool) (nMessages int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTransientError ¶
Types ¶
type Curlier ¶
type Curlier struct {
// contains filtered or unexported fields
}
func NewCurlier ¶
func NewCurlier(cfg *CurlierConfig) (*Curlier, error)
type CurlierConfig ¶
type CurlierConfig struct { Request string `json:"request"` Url string `json:"url"` Headers []string `json:"headers"` Insecure bool `json:"insecure"` User string `json:"user"` Basic bool `json:"basic"` ConnectTimeout float64 `json:"connectionTimeout"` MaxTime float64 `json:"maxTime"` MaxRedirs int `json:"maxRedirs"` RetryDelay float64 `json:"retryDelay"` RetryMaxTime float64 `json:"retryMaxTime"` Retry int `json:"retry"` // contains filtered or unexported fields }
func (*CurlierConfig) FromContext ¶
func (inst *CurlierConfig) FromContext(nameTransf config.NameTransformFunc, ctx *cli.Context) (nMessages int)
func (*CurlierConfig) GetHeaders ¶
func (inst *CurlierConfig) GetHeaders() (keys []string, header *http.Header, err error)
func (*CurlierConfig) ToCliFlags ¶
func (inst *CurlierConfig) ToCliFlags(nameTransf config.NameTransformFunc, envVarNameTransf config.NameTransformFunc) []cli.Flag
func (*CurlierConfig) Validate ¶
func (inst *CurlierConfig) Validate(force bool) (nMessages int)
Click to show internal directories.
Click to hide internal directories.