python-hyper / hyper

HTTP/2 for Python.
http://hyper.rtfd.org/en/latest/
MIT License
1.05k stars 191 forks source link

How resolve DNS to a specific IP? #423

Open the-boring-dev opened 4 years ago

the-boring-dev commented 4 years ago

Using hyper, is there a way to resolve a hostname to a specific IP address? Like the way we can do with cUrl's --resolve flag.

This is useful when you have a service that has regional DNS records and you want to send requests to a particular regional server.

This is how it works in requests.