public static final class Marshalling.WithOpenCharset<A> extends java.lang.Object implements Marshalling<A>, scala.Product, java.io.Serializable
pekko.http.scaladsl.model.MediaType
with a flexible charset.Marshalling.Opaque<A>, Marshalling.Opaque$, Marshalling.WithFixedContentType<A>, Marshalling.WithFixedContentType$, Marshalling.WithOpenCharset<A>, Marshalling.WithOpenCharset$
Constructor and Description |
---|
WithOpenCharset(MediaType.WithOpenCharset mediaType,
scala.Function1<HttpCharset,A> marshal) |
Modifier and Type | Method and Description |
---|---|
<B> Marshalling.WithOpenCharset<B> |
map(scala.Function1<A,B> f) |
scala.Function1<HttpCharset,A> |
marshal() |
MediaType.WithOpenCharset |
mediaType() |
Marshalling<A> |
toOpaque(HttpCharset charset)
Converts this marshalling to an opaque marshalling, i.e. a marshalling result that
does not take part in content type negotiation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public WithOpenCharset(MediaType.WithOpenCharset mediaType, scala.Function1<HttpCharset,A> marshal)
public MediaType.WithOpenCharset mediaType()
public scala.Function1<HttpCharset,A> marshal()
public <B> Marshalling.WithOpenCharset<B> map(scala.Function1<A,B> f)
map
in interface Marshalling<A>
public Marshalling<A> toOpaque(HttpCharset charset)
Marshalling
WithOpenCharset
marshalling.toOpaque
in interface Marshalling<A>
charset
- (undocumented)