http_renderer: towards a cleaner implementation