| Crates.io | multiplex-tonic-hyper |
| lib.rs | multiplex-tonic-hyper |
| version | 0.1.0 |
| created_at | 2022-09-11 00:12:54.001352+00 |
| updated_at | 2022-09-11 00:12:54.001352+00 |
| description | Merge a gRPC service and other HTTP service into one service |
| homepage | |
| repository | https://github.com/eduardo-gomes/multiplex-tonic-hyper/ |
| max_upload_size | |
| id | 662768 |
| size | 56,779 |
This implements a service that routes requests based on Content-Type. If starts with application/grpc it sends to
the inner gRPC service. If it doesn't, then it sends to the other service.
Try the examples:
Open the server, them try the web service at http://[::1]:9999.
cargo run --example hello_world_server
cargo run --example hello_world_client