Serving Different Media Types with Effect's HTTP Server Example

Hi! I've been discovering effect for a few days and I am looking at the http server example from the create-app repo. The platform API for building APIs is really neat, I'm impressed.

One question I have is: is it only aimed at JSON or can it serve other media types like XML or even plain HTML?

And to push it even a bit further, would it be possible to use it to serve different document types based on the request (à la Phoenix/Rails, where the request headers can determine the media type of the response through a presentation layer)?
Was this page helpful?