Class HttpCharsets


  • public final class HttpCharsets
    extends java.lang.Object
    Contains a set of predefined charsets.
    • Method Detail

      • custom

        public static HttpCharset custom​(java.lang.String value,
                                         java.lang.String... aliases)
        Create and return a custom charset.
      • lookup

        public static java.util.Optional<HttpCharset> lookup​(java.lang.String name)
        Returns Some(charset) if the charset with the given name was found and None otherwise.