WithOpenCharset

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

A Marshalling to a specific pekko.http.scaladsl.model.MediaType with a flexible charset.

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): WithOpenCharset[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