toHttpHandler

Converts a PolyHandler into an HttpHandler, dispatching SSE requests to the SSE handler (forwarded as a true byte stream via piped streams so persistent streams do not block) and all other requests to the HTTP handler.