Documentation
¶
Overview ¶
Package httpclient holds shared outbound HTTP identity defaults.
Index ¶
Constants ¶
const IndexerOperatorsURL = RepoURL + "/blob/main/docs/indexer-operators.md"
IndexerOperatorsURL documents Ether's indexer traffic for operators.
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 FormatIndexerUserAgent ¶
FormatIndexerUserAgent formats Ether's honest outbound User-Agent for indexer searches and NZB/torrent downloads ("dev" when version is blank).
func FormatUserAgent ¶
FormatUserAgent formats Ether's outbound User-Agent for version ("dev" when blank).
func IndexerUserAgent ¶
func IndexerUserAgent() string
IndexerUserAgent returns Ether's honest default User-Agent for indexers: "Ether/<version> (+https://github.com/braedonsaunders/ether/blob/main/docs/indexer-operators.md)".
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.