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:portorNonedepending on the proxy config provided.You can also opt out of getting the basic auth by setting
authtoFalse. :rtype:str|NoneAdded in version 1.1.