object Codecs

Source
Codecs.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Codecs
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def detect(encoding: Option[String]): Try[Codec]

    Determines the Message-Encoding specified in a gRPC stream to be unmarshalled.

    Determines the Message-Encoding specified in a gRPC stream to be unmarshalled.

    encoding

    the specified message encoding.

    returns

    the specified codec to uncompress data frame bodies with, Identity if no encoding was specified, or Failure if an unsupported encoding was specified.

  2. def detect(message: HttpMessage): Try[Codec]

    Determines the Message-Encoding specified in a message.

    Determines the Message-Encoding specified in a message.

    message

    the gRPC message

    returns

    the specified codec to uncompress data frame bodies with, Identity if no encoding was specified, or Failure if an unsupported encoding was specified.

  3. def negotiate(request: HttpRequest): Codec

    Determines the message encoding to use for a server response to a client.

    Determines the message encoding to use for a server response to a client.

    request

    the gRPC client request.

    returns

    a codec to compress data frame bodies with, which will be Identity unless the client specifies support for another supported encoding.

  4. val supportedCodecs: Seq[Codec]