Interface Marshalling<A>
- All Known Implementing Classes:
Marshalling.Opaque,Marshalling.WithFixedContentType,Marshalling.WithOpenCharset
public interface Marshalling<A>
Describes one possible option for marshalling a given value.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA Marshalling to an unknown MediaType and charset.static classstatic final classA Marshalling to a specificpekko.http.scaladsl.model.ContentType.static classstatic final classA Marshalling to a specificpekko.http.scaladsl.model.MediaTypewith a flexible charset.static class -
Method Summary
Modifier and TypeMethodDescription<B> Marshalling<B>toOpaque(HttpCharset charset) Converts this marshalling to an opaque marshalling, i.e. a marshalling result that does not take part in content type negotiation.
-
Method Details
-
map
-
toOpaque
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 aWithOpenCharsetmarshalling.- Parameters:
charset- (undocumented)- Returns:
- (undocumented)
-