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

Include connect info with app #28

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Include connect info with app #28

wants to merge 2 commits into from

Conversation

banool
Copy link

@banool banool commented Feb 23, 2024

With the signature of TestClient::new as it is, it is not possible to do the following:

TestClient::new(test_app.into_make_service_with_connect_info::<SocketAddr>())

It seems like Hyper doesn't expose MakeServiceRef anymore so it might be hard to make the signature of TestClient (specifically the generic S) allow this.

Rather than address that, this PR makes the connect info available by enabling it on the app internally.

Let me know what you think!

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