GrpcProtocolNative

akka.grpc.internal.GrpcProtocolNative$

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

Attributes

Source:
GrpcProtocolNative.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

override def newReader(codec: Codec): GrpcProtocolReader

Obtains a reader for this protocol.

Obtains a reader for this protocol.

Attributes

codec

the codec to use for compressed frames.

Definition Classes
Source:
GrpcProtocolNative.scala
override def newWriter(codec: Codec): GrpcProtocolWriter

Obtains a writer for this protocol:

Obtains a writer for this protocol:

Attributes

codec

the compression codec to apply to data frame contents.

Definition Classes
Source:
GrpcProtocolNative.scala

Inherited fields

override val contentType: Binary

INTERNAL API

INTERNAL API

The canonical media type to use for this protocol variant

Attributes

Inherited from:
AbstractGrpcProtocol
Source:
AbstractGrpcProtocol.scala
override 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)

Attributes

Inherited from:
AbstractGrpcProtocol
Source:
AbstractGrpcProtocol.scala