Closed rollo-b2c2 closed 1 year ago
Forgive the basic question, but what's a sensible way of adding a plain HTTP route to the
Server
.I'd like to have some plain HTTP routes on some non GRPC paths. Is this possible?
We have implemented this before, here is an example:
Implement an HTTP handle
Then add the service to the tonic server.
This uses warp but you can apply the same to axum. https://github.com/hyperium/tonic/blob/master/examples/src/hyper_warp_multiplex/server.rs
Forgive the basic question, but what's a sensible way of adding a plain HTTP route to the
Server
.I'd like to have some plain HTTP routes on some non GRPC paths. Is this possible?