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

Server example #1

Open
Nemo157 opened this issue Jan 20, 2020 · 3 comments
Open

Server example #1

Nemo157 opened this issue Jan 20, 2020 · 3 comments

Comments

@Nemo157
Copy link

Nemo157 commented Jan 20, 2020

Back before hyper 0.13 released I wrote this quick example of running its server on async-std, I'm not sure if much of the API changed between alpha.4 and the final release, but it may be a useful starting point.

@llebout
Copy link
Owner

llebout commented Jan 20, 2020

Very cool! Thanks! I'll have a go ASAP.
The server part generics trickery looked a bit like black magic to me, especially without documentation. 😅

@Nemo157
Copy link
Author

Nemo157 commented May 18, 2020

And I just got around to updating http-service-hyper to work with the current hyper and http-service releases, so https://github.com/Nemo157/http-service-hyper/blob/master/src/lib.rs has a fully working example of hyper on smol, obfuscated via a heavy layer of http-service.

@llebout
Copy link
Owner

llebout commented May 18, 2020

That's awesome! Thank you! I'm sorry I couldnt get to it myself. I was satisfied with the result that other people have taken on the idea and improved upon the initial code to solve the hyper compatibility problem in their projects. That includes smol, async-std, and others. I could not justify spending more time on this considering the other things I'm busy with and that the desired effect of the project was reached.

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