http_renderer: more refactoring