public static MediaType create(String type, String subtype) {
        MediaType mediaType = create(type, subtype, ImmutableListMultimap.of());
        mediaType.parsedCharset = null;
        return mediaType;
    }
Creates a new media type with the given type and subtype.

@throws IllegalArgumentException if type or subtype is invalid or if a wildcard is used for the
    type, but not the subtype.
core/src/main/java/com/linecorp/armeria/common/MediaType.java