Codecs

akka.grpc.internal.Codecs$
object Codecs

Attributes

Source:
Codecs.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Codecs.type

Members list

Concise view

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.

Attributes

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.

Attributes

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.

Attributes

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

Attributes

Source:
Codecs.scala