Opaque

org.apache.pekko.http.scaladsl.marshalling.Marshalling.Opaque
final case class Opaque[A](marshal: () => A) extends Marshalling[A]

A Marshalling to an unknown MediaType and charset. Circumvents content negotiation.

Attributes

Source
Marshaller.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Marshalling[A]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def map[B](f: A => B): Opaque[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

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product