pub fn enable<S>(service: S) -> GrpcWeb<S> where
S: Service<Request<Body>, Response = Response<BoxBody>>,
S: NamedService + Clone + Send + 'static,
S::Future: Send + 'static,
S::Error: Into<Box<dyn Error + Send + Sync>> + Send,
Expand description
enable a tonic service to handle grpc-web requests with the default configuration.
Shortcut for tonic_web::config().enable(service)