Add server docs

This commit is contained in:
Lucio Franco
2019-09-04 16:38:46 -04:00
parent 2a01ab229a
commit 77a6c89ae9
8 changed files with 107 additions and 13 deletions
+2 -2
View File
@@ -106,7 +106,7 @@ pub(crate) fn generate(service: ServiceDef) -> TokenStream {
}
}
impl Service<http::Request<hyper::Body>> for #server_service {
impl Service<http::Request<tonic::_codegen::HyperBody>> for #server_service {
type Response = http::Response<tonic::BoxBody>;
type Error = tonic::error::Never;
type Future = BoxFuture<Self::Response, Self::Error>;
@@ -115,7 +115,7 @@ pub(crate) fn generate(service: ServiceDef) -> TokenStream {
Poll::Ready(Ok(()))
}
fn call(&mut self, req: http::Request<hyper::Body>) -> Self::Future {
fn call(&mut self, req: http::Request<tonic::_codegen::HyperBody>) -> Self::Future {
let inner = self.inner.clone();
match req.uri().path() {