Yes. What you return in controller action ? Not response ? It should work if you return:
return $responset->setContent('xyz');
Or you use automatic rendering, or return $this->view->pick()
or return $this->view->render()
What exactly $dispatcher->getReturnedValue()
return ?
If this is not working then try:
$content = $dispatcher->getDI()->get('response')->getContent();