-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Can't create or modify hyper::client::connect::Destination #1564
Comments
I definitely get the use case! I'd like to find a way to support it, but I'd also like to list why the constructor was so far private:
What if, without adding a constructor, you could just mutate the internal URI of the |
that would work for me as well |
This would be nice for me as well. In hyper 0.11, I had a "stack" of composed connectors: |
I'm trying to write a connector that takes a destination, modifies it and passes it to the next connector. It seems this is currently not possible because there's no way to get a mutable reference to the internal state and only hyper can create new
Destination
objects.My usecase is having a custom dns resolver as a Connector that resolves the domain before passing it to the final HttpConnector that creates the connection.
The text was updated successfully, but these errors were encountered: