Class ContentType$
java.lang.Object
org.apache.pekko.http.scaladsl.model.ContentType$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContentType$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(MediaType.Binary mediaType) apply(MediaType.WithFixedCharset mediaType) apply(MediaType.WithOpenCharset mediaType, HttpCharset charset) apply(MediaType mediaType, scala.Function0<HttpCharset> charset) scala.util.Either<scala.collection.immutable.List<ErrorInfo>,ContentType> Tries to parse aContentTypevalue from the given String.scala.Option<scala.Tuple2<MediaType,scala.Option<HttpCharset>>> unapply(ContentType contentType)
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
ContentType$
public ContentType$()
-
-
Method Details
-
apply
-
apply
-
apply
-
apply
-
unapply
public scala.Option<scala.Tuple2<MediaType,scala.Option<HttpCharset>>> unapply(ContentType contentType) -
parse
public scala.util.Either<scala.collection.immutable.List<ErrorInfo>,ContentType> parse(String value) Tries to parse aContentTypevalue from the given String. ReturnsRight(contentType)if successful andLeft(errors)otherwise.- Parameters:
value- (undocumented)- Returns:
- (undocumented)
-