As discussed in https://discuss.lightbend.com/t/akka-http-java-api-need-to-create-a-contenttype-from-a-string-mime-type/957 we discovered that one of the Scala APIs is missing for the Java one.
private val custom: MediaType.Binary = MediaType.customBinary("application", "wat", MediaType.Compressible)
private val binary = ContentType(custom)
println(s"binary = ${binary}")
To ease Java API users, we should have the same APIs available for both languages.
Thanks :)