Marcelo Trylesinski
Marcelo Trylesinski
How do I send the headers in `httpx` the same way as `requests`? See https://docs.python-requests.org/en/latest/user/quickstart/#post-a-multipart-encoded-file
Test failing until https://github.com/encode/httpx/pull/1936/ is merged.
About the deprecation, anything else besides the item specified in the description of this PR and the `allow_redirects` that you have in mind? Because I've run the test suite of...
> > As a reminder, this PR cannot be concluded without taking a decision on [encode/httpx#1936](https://github.com/encode/httpx/pull/1936), or giving me orientation e.g. I can skip the test that involves that issue....
@tomchristie friendly follow-up ping
Thanks for your input @tiangolo ! :) I'll wait for @tomchristie 's feedback, so we can decide how to continue here in order to have this PR merged.
> Is it feasible for us to add compat for `data=...`, `allow_redirects=...`, `.reason/.reason_phrase` for now? I can do that. I'm not sure what to do with the test suite, tho....
Added `allow_redirects` compat on the last commit (I don't know what happened with the commit message). JFYK
> Thanks for taking this on @Kludex. I know there have been a lot of "requests" to remove Requests 🤪. > > Are there any concerns about client state? I'm...
> Nice job @Kludex Thanks! > > Also, for almost all of the points, I think except for the cookies in the client, the needed refactor could be automated with...