mopidy.httpclient — HTTP Client helpers¶
-
mopidy.httpclient.format_proxy(proxy_config, auth=True)[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.New in version 1.1.