java.lang.Object
ch.raffael.meldioc.library.http.server.undertow.codec.HttpContentTypes

public final class HttpContentTypes extends Object
Utilities for dealing with content types.
  • Method Details

    • contentType

      public static io.vavr.control.Option<ch.raffael.meldioc.library.codec.ContentType> contentType(io.undertow.server.HttpServerExchange exchange)
    • typeWithCharset

      public static io.vavr.Tuple2<String,Charset> typeWithCharset(@Nullable @Nullable String fullContentType, Charset fallback)
    • typeWithCharset

      public static io.vavr.Tuple2<String,io.vavr.control.Option<Charset>> typeWithCharset(@Nullable @Nullable String fullContentType)