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:port
orNone
depending on the proxy config provided.You can also opt out of getting the basic auth by setting
auth
toFalse
.New in version 1.1.