Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to set the source address for a request. #63

Merged
merged 1 commit into from
May 7, 2018

Conversation

miracle2k
Copy link
Contributor

Currently, trio does not support this (python-trio/trio#518) - but curio apparently does. multio ignores the argument in the case of trio, so this is still something that can be added to asks.

I did not want to pass an argument all the way through to the socket, and took inspiration from how you do this in requests:

psf/requests#2008 (comment)

Since asks does not have an adapter system per se, I am attaching a configuration option directly to the session.

@theelous3 theelous3 merged commit 90cb0b1 into theelous3:master May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants