Marshalling

org.apache.pekko.http.scaladsl.marshalling.Marshalling
See theMarshalling companion object
sealed trait Marshalling[+A]

Describes one possible option for marshalling a given value.

Attributes

Companion
object
Source
Marshaller.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Opaque[A]
class WithOpenCharset[A]

Members list

Value members

Abstract methods

def map[B](f: A => B): Marshalling[B]

Attributes

Source
Marshaller.scala
def toOpaque(charset: HttpCharset): Marshalling[A]

Converts this marshalling to an opaque marshalling, i.e. a marshalling result that does not take part in content type negotiation. The given charset is used if this instance is a WithOpenCharset marshalling.

Converts this marshalling to an opaque marshalling, i.e. a marshalling result that does not take part in content type negotiation. The given charset is used if this instance is a WithOpenCharset marshalling.

Attributes

Source
Marshaller.scala