o

akka.grpc.internal

GrpcProtocolNative

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
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GrpcProtocolNative
  2. AbstractGrpcProtocol
  3. GrpcProtocol
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. val contentType: Binary

    INTERNAL API

    INTERNAL API

    The canonical media type to use for this protocol variant

    Definition Classes
    AbstractGrpcProtocolGrpcProtocol
  2. 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
    AbstractGrpcProtocolGrpcProtocol
  3. 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
    GrpcProtocolNativeAbstractGrpcProtocolGrpcProtocol
  4. 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
    GrpcProtocolNativeAbstractGrpcProtocolGrpcProtocol