Module io.inverno.mod.grpc.base
Package io.inverno.mod.grpc.base
Interface GrpcInboundResponseMetadata
- All Superinterfaces:
GrpcInboundMetadata
- All Known Subinterfaces:
GrpcOutboundResponseMetadata
Represents immutable inbound gRPC response metadata.
This extends the GrpcInboundMetadata
to expose response specific information like accepted message encodings or the message encoding.
An inbound response is received by a client in a client exchange, the metadata are received first and initiates the gRPC exchange.
- Since:
- 1.9
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list of message encodings accepted by a server.Returns the encoding of messages sent by a server.Methods inherited from interface io.inverno.mod.grpc.base.GrpcInboundMetadata
contains, contains, containsBinary, containsBinary, get, getAll, getAllBinary, getBinary, getBinaryNames, getNames
-
Method Details
-
getAcceptMessageEncoding
Returns the list of message encodings accepted by a server.
- Returns:
- a list of message encodings or an empty list
-
getMessageEncoding
Returns the encoding of messages sent by a server.
- Returns:
- an optional returning the message encoding or an empty optional if none was specified
-