We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
with_interceptor
1 parent 32173dc commit 095233fCopy full SHA for 095233f
tonic-build/src/client.rs
@@ -50,7 +50,10 @@ pub fn generate<T: Service>(
50
pub fn with_interceptor<F>(inner: T, interceptor: F) -> #service_ident<InterceptedService<T, F>>
51
where
52
F: FnMut(tonic::Request<()>) -> Result<tonic::Request<()>, tonic::Status>,
53
- T: Service<http::Request<tonic::body::BoxBody>, Response = http::Response<T::ResponseBody>>,
+ T: Service<
54
+ http::Request<tonic::body::BoxBody>,
55
+ Response = http::Response<<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody>
56
+ >,
57
<T as Service<http::Request<tonic::body::BoxBody>>>::Error: Into<StdError> + Send + Sync,
58
{
59
#service_ident::new(InterceptedService::new(inner, interceptor))
0 commit comments