programatik29 / axum-server

High level server designed to be used with axum framework.
MIT License
168 stars 56 forks source link

How to support https and http dual protocol with rewrite-minimal branch #26

Closed c5soft closed 2 years ago

c5soft commented 2 years ago

hi, Eray, i've tested your recent posted rewrite-minimal redesign version, it works! but i noticed one problem: there is no way to make a single server to provide https and http dual protocol like version 0.2.5. This is a must-have feature, please please conside it.

programatik29 commented 2 years ago

I think current lower level approach is better.

With this new design, some features are removed but you can implement them yourself. For example, spawn one http server task and spawn one https server task then join them.

c5soft commented 2 years ago

That's greet, but i'd prefer something out-of-box. Thanks.

c5soft commented 2 years ago

http_and_https.rs is very good example. Thanks.