Hey there, how do I check if a metadata header has been set? I currently have a ClientInterceptor that asynchronously attaches a authentication token to each request. At the moment, the request is simply sent without an authentication token if the application is not currently authenticated which isn't ideal since it's needlessly invoking the gRPC server. Ideally, the request would be cancelled by the client without having to make the round trip.
Hey there, how do I check if a metadata header has been set? I currently have a
ClientInterceptor
that asynchronously attaches a authentication token to each request. At the moment, the request is simply sent without an authentication token if the application is not currently authenticated which isn't ideal since it's needlessly invoking the gRPC server. Ideally, the request would be cancelled by the client without having to make the round trip.