This might just be a documentation issue. I’ve googled, I’ve search the Akka HTTP docs, and I’ve poked through the code.
A pointer—or code—would be awesome.
I have a String MIME type (such as “application/jar”). I want to create a
ContentType for use in a response. I only care about a binary type, as this mapping is for a download only.
I’m stuck with the Java API. (Don’t ask.) I can easily create a mapping from a String to a
MediaType. I cannot, for the life of me, figure out how—in Java—to make the final leap from a
MediaType to a
Is this even possible, without resorting to the Scala API? My client would prefer that there be no Scala in this server.