httpclient

package
v0.3.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package httpclient holds shared outbound HTTP identity defaults.

Index

Constants

View Source
const IndexerOperatorsURL = RepoURL + "/blob/main/docs/indexer-operators.md"

IndexerOperatorsURL documents Ether's indexer traffic for operators.

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 FormatIndexerUserAgent

func FormatIndexerUserAgent(version string) string

FormatIndexerUserAgent formats Ether's honest outbound User-Agent for indexer searches and NZB/torrent downloads ("dev" when version is blank).

func FormatUserAgent

func FormatUserAgent(version string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL