Documentation ¶
Index ¶
- Constants
- Variables
- func AddAdditionalHeadersSpecifiedByFlag(r *http.Request) error
- func DoFileRequest(ctx context.Context, path string, payload io.Reader, contentType string) (response *http.Response, error error)
- func DoRequest(ctx context.Context, method string, path string, query string, ...) (response *http.Response, error error)
- func Initialize(rateLimit uint16, requestTimeout float32)
- func LogStats()
- type HttpParameterOverrides
Constants ¶
View Source
const EnvNameHttpPrefix = "EPCC_CLI_HTTP_HEADER_"
Variables ¶
View Source
var DontLog2xxs = false
View Source
var HttpClient = &http.Client{}
View Source
var Limit *rate.Limiter = nil
View Source
var RawHeaders []string
View Source
var Retry429 = false
View Source
var Retry5xx = false
Functions ¶
func AddAdditionalHeadersSpecifiedByFlag ¶ added in v0.8.1
func DoFileRequest ¶
func Initialize ¶ added in v0.10.0
Types ¶
type HttpParameterOverrides ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.