QueryParams and Headers are both multidicts but behave differently #2667
Unanswered
rafalkrupinski
asked this question in
Potential Issue
Replies: 1 comment
-
I do think we could unify the APIs to return a single key from |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
...and I don't mean that one is case sensitive and the other isn't
When receiving multi-valued parameter (httpx client):
request.query_params.keys()
returnsparam
once, and I can get each value fromrequest.query_params.getlist('param')
When receiving multi-valued header:
request.headers.keys()
returnsparam
twice.Not a critical issue, but confusing. If they share API, they should share behaviour.
Beta Was this translation helpful? Give feedback.
All reactions