object Codecs
- Source
- Codecs.scala
- Alphabetic
- By Inheritance
- Codecs
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- 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.
- 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.
- 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.
- val supportedCodecs: Seq[Codec]