Codecs

org.apache.pekko.grpc.internal.Codecs
object Codecs

Attributes

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

Members list

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

Attributes

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.

Attributes

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.

Attributes

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