HTTP client helpers
mopidy.httpclient
Helpers for configuring HTTP clients used in Mopidy extensions.
Functions:
-
format_proxy–Convert a Mopidy proxy config to the commonly used proxy string format.
-
format_user_agent–Construct a User-Agent suitable for use in client code.
format_proxy
Convert a Mopidy proxy config to the commonly used proxy string format.
Outputs scheme://host:port, scheme://user:pass@host:port or None
depending on the proxy config provided.
You can also opt out of getting the basic auth by setting auth to
False.