o

akka.grpc.internal

GrpcProtocolWeb

object GrpcProtocolWeb extends GrpcProtocolWebBase

Implementation of the gRPC Web protocol.

Protocol:

  • Data frames are encoded to a stream of Chunk as per the gRPC-web specification.
  • Trailer frames are encoded to a Chunk (containing a marked trailer frame) as per the gRPC-web specification.
Source
GrpcProtocolWeb.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GrpcProtocolWeb
  2. GrpcProtocolWebBase
  3. AbstractGrpcProtocol
  4. GrpcProtocol
  5. AnyRef
  6. 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
    AbstractGrpcProtocolGrpcProtocol
  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
    AbstractGrpcProtocolGrpcProtocol
  5. final def postEncode(frame: ByteString): ByteString
    Definition Classes
    GrpcProtocolWebGrpcProtocolWebBase
  6. final def preDecodeFlow: Flow[ByteString, ByteString, NotUsed]
    Definition Classes
    GrpcProtocolWebGrpcProtocolWebBase
  7. final def preDecodeStrict(frame: ByteString): ByteString
    Definition Classes
    GrpcProtocolWebGrpcProtocolWebBase