httpclient

package
v1.63.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package httpclient provides a shared HTTP client configured for audio streaming.

Index

Constants

This section is empty.

Variables

View Source
var Streaming = &http.Client{Transport: newStreamingTransport()}

Streaming is a shared HTTP client for audio streaming connections. It sets a generous header timeout but no overall timeout, so infinite live streams (Icecast/SHOUTcast) aren't killed. HTTP/2 is explicitly disabled via TLSNextProto because Icecast/SHOUTcast servers don't support it — Go's default ALPN negotiation causes EOF.

Proxy is read from the environment (HTTP_PROXY, HTTPS_PROXY, NO_PROXY) so users behind corporate or local proxies aren't bypassed; the rest of the codebase uses http.DefaultTransport, which already honors these vars.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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