package
0.0.0-20250312152250-ea85ec9d2454
Repository: https://github.com/snapcore/snapd.git
Documentation: pkg.go.dev
# Functions
BaseTransport returns the underlying http.Transport of a client created with NewHTTPClient.
No description provided by the author
No description provided by the author
No description provided by the author
NewHTTPClient returns a new http.Client with a LoggedTransport, a Timeout and preservation of range requests across redirects.
NoNetwork returns true if the error indicates that there is no network connection available, i.e.
RetryRequest calls doRequest and read the response body in a retry loop using the given retryStrategy.
No description provided by the author
ShouldRetryError returns true for transient network errors like when the remote side returns a connection reset and it's sensible to retry after a short time.
No description provided by the author
# Constants
set these via the Key environ.
set these via the Key environ.
set these via the Key environ.
# Structs
CertData contains the raw data of a certificate and the origin of the cert, this is usually a file path on disk and is just used for error reporting.
No description provided by the author
ExtraSSLCertsFromDir implements ExtraSSLCerts and provides all the pem encoded certs from the given directory.
LoggedTransport is an http.RoundTripper that can be used by http.Client to log request/response roundtrips.
No description provided by the author
# Interfaces
ExtraSSLCerts is an interface that provides a way to add extra SSL certificates to the httputil.Client.