Skip to content

Can't create or modify hyper::client::connect::Destination #1564

Closed
@kpcyrd

Description

@kpcyrd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-clientArea: client.B-rfcBlocked: More comments would be useful in determine next steps.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions