Skip to content

Include connect info with app - #28

Open
banool wants to merge 2 commits into
cloudwalk:mainfrom
banool:main
Open

Include connect info with app#28
banool wants to merge 2 commits into
cloudwalk:mainfrom
banool:main

Conversation

@banool

@banool banool commented Feb 23, 2024

Copy link
Copy Markdown

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!

tisonkun and others added 2 commits March 17, 2024 16:38
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