Skip to main content

Module http

Module http 

Source

Structs§

Settings
HTTP client settings - decoupled from Config struct.
TlsConfig
TLS certificate configuration options.

Constants§

DEFAULT_USER_AGENT
Default browser-like user agent for speedtest.net compatibility. Can be overridden via config file with custom_user_agent option.

Functions§

create_client
Create an HTTP client with the given settings.
discover_client_ip
Discover the client’s public IP address via speedtest.net.
with_retry
Execute an HTTP request with automatic retry on transient failures.