/**
  * {@inheritdoc}
  */
 public function getHttpResponse(ResponseInterface &$response)
 {
     $this->response_mode->prepareResponse($this->redirect_uri, $this->getResponseData(), $response);
     foreach ($this->getResponseHeaders() as $name => $header) {
         $response = $response->withAddedHeader($name, $header);
     }
 }
 /**
  * {@inheritdoc}
  */
 public function addResponseMode(ResponseModeInterface $response_mode)
 {
     $this->response_modes[$response_mode->getName()] = $response_mode;
 }