Replies: 1 comment 1 reply
-
Interesting yes. You could use a pattern for that so it's available if you want it tho not default. UA = os.environ.get(...)
client = httpx.Client(headers=...) Suggest if you want that probably better to be explicit rather than implicit. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It'd be a nice convenience if the preferred user-agent could be saved as an environment variable and have that be what is used as the default (it'd still be overridable by changing the header explicitly).
Beta Was this translation helpful? Give feedback.
All reactions