[GH-ISSUE #536] How to use proxies #173

Open
opened 2026-02-27 20:23:33 +03:00 by kerem · 1 comment
Owner

Originally created by @barthofu on GitHub (Sep 14, 2025).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/536

Hey!

Sorry if it's a dumb question but i can't figure out how to configure proxies for the http client, or even how to inject a custom client if it is even possible 😅

Could you point me in the right direction? Thanks a lot!

Originally created by @barthofu on GitHub (Sep 14, 2025). Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/536 Hey! Sorry if it's a dumb question but i can't figure out how to configure proxies for the http client, or even how to inject a custom client if it is even possible 😅 Could you point me in the right direction? Thanks a lot!
Author
Owner

@ramsayleung commented on GitHub (Sep 15, 2025):

Both reqwest and ureq support system proxies by default. They both read http_proxy, https_proxy, all_proxy and their uppercase variants HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, although the specific logic implementations are a little different.

see also: https://docs.rs/rspotify/latest/rspotify/#proxies

<!-- gh-comment-id:3290568766 --> @ramsayleung commented on GitHub (Sep 15, 2025): Both `reqwest` and `ureq` support system proxies by default. They both read `http_proxy`, `https_proxy`, `all_proxy` and their uppercase variants `HTTP_PROXY`, `HTTPS_PROXY`, `ALL_PROXY`, although the specific logic implementations are a little different. see also: https://docs.rs/rspotify/latest/rspotify/#proxies
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rspotify#173
No description provided.