object GrpcProtocolNative extends AbstractGrpcProtocol
Implementation of the gRPC (application/grpc+proto
) protocol:
Protocol:
- Data frames are encoded to a stream of Chunk as per the gRPC specification
- Trailer frames are encoded to LastChunk, to be rendered into the underlying HTTP/2 transport
- Source
- GrpcProtocolNative.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- GrpcProtocolNative
- AbstractGrpcProtocol
- GrpcProtocol
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- val contentType: Binary
INTERNAL API
INTERNAL API
The canonical media type to use for this protocol variant
- Definition Classes
- AbstractGrpcProtocol → GrpcProtocol
- val mediaTypes: Set[MediaType]
INTERNAL API
INTERNAL API
The set of media types that can identify this protocol variant (e.g. including an implicit +proto)
- Definition Classes
- AbstractGrpcProtocol → GrpcProtocol
- def newReader(codec: Codec): GrpcProtocolReader
Obtains a reader for this protocol.
Obtains a reader for this protocol.
- codec
the codec to use for compressed frames.
- Definition Classes
- GrpcProtocolNative → AbstractGrpcProtocol → GrpcProtocol
- def newWriter(codec: Codec): GrpcProtocolWriter
Obtains a writer for this protocol:
Obtains a writer for this protocol:
- codec
the compression codec to apply to data frame contents.
- Definition Classes
- GrpcProtocolNative → AbstractGrpcProtocol → GrpcProtocol