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

Middleware example of reading request/response body #3

Closed
desertjim opened this issue May 18, 2020 · 1 comment
Closed

Middleware example of reading request/response body #3

desertjim opened this issue May 18, 2020 · 1 comment

Comments

@desertjim
Copy link

All of the examples I've seen for reading a hyper Body of the request or response are async. The methods in the middleware trait are not asynchronous. Is it possible to read the body contents in these methods?

If so can you provide an example of what this would look like?

@terry90
Copy link
Owner

terry90 commented Jun 12, 2020

Hi, this library does not use the new async/await syntax of Rust.
I would gladly accept a PR, but I won't do it myself anytime soon, sorry.

Edit: I bumped the dependencies to the last version of hyper

@terry90 terry90 closed this as completed Jun 12, 2020
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

No branches or pull requests

2 participants