mopidy.httpclient — HTTP Client helpers
Helpers for configuring HTTP clients used in Mopidy extensions.
- mopidy.httpclient.format_proxy(proxy_config, auth=True) str | None[source]
- Convert a Mopidy proxy config to the commonly used proxy string format. - Outputs - scheme://host:port,- scheme://user:pass@host:portor- Nonedepending on the proxy config provided.- You can also opt out of getting the basic auth by setting - authto- False. :rtype:- str|- None- Added in version 1.1.