Codecs

object Codecs
class Object
trait Matchable
class Any
Codecs.type

Value members

Concrete methods

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

Determines the Message-Encoding specified in a message.

Determines the Message-Encoding specified in a message.

Value parameters:
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.

Source:
Codecs.scala
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.

Value parameters:
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.

Source:
Codecs.scala
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.

Value parameters:
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.

Source:
Codecs.scala

Concrete fields