Generates autocomplete response straight from middleware