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

Add support for HTTP/2 #150

Closed
doxblek opened this issue Oct 10, 2022 · 1 comment
Closed

Add support for HTTP/2 #150

doxblek opened this issue Oct 10, 2022 · 1 comment
Labels

Comments

@doxblek
Copy link

doxblek commented Oct 10, 2022

I ran into the situation where I had to mock an HTTP/2-only-Server.
In the application I consumed the server using reqwest. I set reqwest to HTTP/2 only by this:

let client = ClientBuilder::new().http2_prior_knowledge().build()?;

When using mockito, in contrast to the actual server, my unit test hang up (async unit test via tokio). Once I conditionally set reqwest to HTTP/2-only (using #[cfg(test)]), mockito worked as expected.

So it seams mockito is currently not supporting HTTP/2 – also I could not find any related options.

While I was able to find a workaround (that does not even has runtime overhead), it was still preferable to have that feature included.

Thank you!

@lipanski lipanski mentioned this issue Feb 5, 2023
7 tasks
@lipanski
Copy link
Owner

Fixed in https://github.com/lipanski/mockito/releases/tag/0.32.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants