public EncodingServiceBuilder encodableContentTypes(Iterable<MediaType> contentTypes) {
        final List<MediaType> snapshot = ImmutableList.copyOf(requireNonNull(contentTypes, "contentTypes"));
        return encodableContentTypes(mediaType -> snapshot.stream().anyMatch(mediaType::belongsTo));
    }
Sets the specified {@link MediaType}s to evaluate whether the content type of the {@link HttpResponse}
is encodable or not. It's encodable when the content type is one of the {@link MediaType}s.
core/src/main/java/com/linecorp/armeria/server/encoding/EncodingServiceBuilder.java