package
1.4.11
Repository: https://github.com/hyperledger/firefly-common.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
New creates a new Resty client, using static configuration (from the config file) from a given section in the static configuration You can use the normal Resty builder pattern, to set per-instance configuration as required.
New creates a new Resty client, using static configuration (from the config file) from a given section in the static configuration You can use the normal Resty builder pattern, to set per-instance configuration as required.
OnAfterResponse when using SetDoNotParseResponse(true) for streaming binary replies, the caller should invoke ffresty.OnAfterResponse on the response manually.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

HTTPConfigAuthPassword HTTPS Basic Auth configuration - secret / password.
HTTPConfigAuthUsername HTTPS Basic Auth configuration - username.
HTTPConfigHeaders adds custom headers to the requests.
HTTPConfigProxyURL adds a proxy.
HTTPConfigRequestTimeout the request timeout.
HTTPConfigRetryCount the maximum number of retries.
HTTPConfigRetryEnabled whether retry is enabled on the actions performed over this HTTP request (does not disable retry at higher layers).
HTTPConfigRetryErrorStatusCodeRegex the regex that the error response status code must match to trigger retry.
HTTPConfigRetryInitDelay the initial retry delay.
HTTPConfigRetryMaxDelay the maximum retry delay.
HTTPConfigURL is the url to connect to for this HTTP configuration.
HTTPConnectionTimeout the connection timeout for new connections.
HTTPCustomClient - unit test only - allows injection of a custom HTTP client to resty.
HTTPExpectContinueTimeout see ExpectContinueTimeout in Go docs.
HTTPIdleTimeout the max duration to hold a HTTP keepalive connection between calls.
HTTPMaxConnsPerHost the max number of concurrent connections.
HTTPMaxIdleConns the max number of idle connections to hold pooled.
HTTPPassthroughHeadersEnabled will pass through any HTTP headers found on the context.
HTTPThrottleBurst The maximum number of requests that can be made in a short period of time before the RPS throttling kicks in.
HTTPThrottleRequestsPerSecond The average rate at which requests are allowed to pass through over time.
HTTPTLSHandshakeTimeout the TLS handshake connection timeout.

# Structs

No description provided by the author
HTTPConfig is all the optional configuration separate to the URL you wish to invoke.