Ensuring consumption of the streaming response occurs in scope