public static final class Marshalling.WithFixedContentType<A> extends java.lang.Object implements Marshalling<A>, scala.Product, java.io.Serializable
pekko.http.scaladsl.model.ContentType
.Marshalling.Opaque<A>, Marshalling.Opaque$, Marshalling.WithFixedContentType<A>, Marshalling.WithFixedContentType$, Marshalling.WithOpenCharset<A>, Marshalling.WithOpenCharset$
Constructor and Description |
---|
WithFixedContentType(ContentType contentType,
scala.Function0<A> marshal) |
Modifier and Type | Method and Description |
---|---|
ContentType |
contentType() |
<B> Marshalling.WithFixedContentType<B> |
map(scala.Function1<A,B> f) |
scala.Function0<A> |
marshal() |
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 WithFixedContentType(ContentType contentType, scala.Function0<A> marshal)
public ContentType contentType()
public scala.Function0<A> marshal()
public <B> Marshalling.WithFixedContentType<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)