Documentation
¶
Overview ¶
Package httpclient holds shared outbound HTTP identity defaults.
Index ¶
Constants ¶
View Source
const RepoURL = "https://github.com/braedonsaunders/ether"
RepoURL is the project URL included in Ether's honest outbound User-Agent.
Variables ¶
This section is empty.
Functions ¶
func FormatUserAgent ¶
FormatUserAgent formats Ether's outbound User-Agent for version ("dev" when blank).
func SetVersionProvider ¶
func SetVersionProvider(fn func() string)
SetVersionProvider registers the build-version lookup used by UserAgent. internal/updater wires its linker-injected Version variable at init time so packages that cannot import updater still report the build version without import cycles.
func UserAgent ¶
func UserAgent() string
UserAgent returns Ether's outbound User-Agent header value: "Ether/<version> (+https://github.com/braedonsaunders/ether)".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.