Package io.servicetalk.grpc.api
Interface GrpcMetadata
- All Known Subinterfaces:
GrpcClientMetadata
,GrpcServiceContext
- All Known Implementing Classes:
DefaultGrpcClientMetadata
,Health.CheckMetadata
,Health.WatchMetadata
public interface GrpcMetadata
Metadata for a gRPC call.
-
Method Summary
Modifier and TypeMethodDescriptionpath()
Deprecated.default ContextMap
A request context associated with thisGrpcMetadata
that translates intoHttpMetaData.context()
.default ContextMap
A response context associated with thisGrpcMetadata
that translates intoHttpMetaData.context()
.
-
Method Details
-
path
Deprecated.Returns the path for the associated gRPC method.- Returns:
- The path for the associated gRPC method.
-
requestContext
A request context associated with thisGrpcMetadata
that translates intoHttpMetaData.context()
.Context can be used to associate a state with a request without serializing its state on the wire or transmit a state between HTTP and gRPC layers.
- Returns:
- a request context associated with this
GrpcMetadata
that translates intoHttpMetaData.context()
.
-
responseContext
A response context associated with thisGrpcMetadata
that translates intoHttpMetaData.context()
.Context can be used to associate a state with a response without serializing its state on the wire or transmit a state between HTTP and gRPC layers.
- Returns:
- a response context associated with this
GrpcMetadata
that translates intoHttpMetaData.context()
.
-
MethodDescriptor.httpPath()
.