streamline HTTPHandler.handle_flow()