Package ai.chalk.client
Class UnauthenticatedHeaderClientInterceptor
java.lang.Object
ai.chalk.client.UnauthenticatedHeaderClientInterceptor
- All Implemented Interfaces:
io.grpc.ClientInterceptor
public class UnauthenticatedHeaderClientInterceptor
extends Object
implements io.grpc.ClientInterceptor
A client interceptor that adds the server type and environment ID to the headers of all outgoing
-
Constructor Summary
ConstructorsConstructorDescriptionUnauthenticatedHeaderClientInterceptor(@NonNull Map<String, String> additionalHeaders) -
Method Summary
Modifier and TypeMethodDescription<ReqT,RespT>
io.grpc.ClientCall<ReqT,RespT> interceptCall(io.grpc.MethodDescriptor<ReqT, RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next)
-
Constructor Details
-
UnauthenticatedHeaderClientInterceptor
-
-
Method Details
-
interceptCall
public <ReqT,RespT> io.grpc.ClientCall<ReqT,RespT> interceptCall(io.grpc.MethodDescriptor<ReqT, RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next) - Specified by:
interceptCallin interfaceio.grpc.ClientInterceptor
-